function _aggregator_has_categories
_aggregator_has_categories()
Determines whether there are any aggregator categories.
Return value
TRUE if there is at least one category and the user has access to them; FALSE otherwise.
File
- modules/aggregator/aggregator.module, line 288
- Used to aggregate syndicated content (RSS, RDF, and Atom).
Code
function _aggregator_has_categories() { return user_access('access news feeds') && (bool) db_query_range('SELECT 1 FROM {aggregator_category}', 0, 1)->fetchField(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!aggregator!aggregator.module/function/_aggregator_has_categories/7.x