function _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.
1 string reference to '_aggregator_has_categories'
- aggregator_menu in modules/
aggregator/ aggregator.module - Implements hook_menu().
File
-
modules/
aggregator/ aggregator.module, line 288
Code
function _aggregator_has_categories() {
return user_access('access news feeds') && (bool) db_query_range('SELECT 1 FROM {aggregator_category}', 0, 1)->fetchField();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.