function _aggregator_has_categories

7.x aggregator.module _aggregator_has_categories()
6.x aggregator.module _aggregator_has_categories()

Find out 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 drupal-6.x/modules/aggregator/aggregator.module
Implementation of hook_menu().

File

drupal-6.x/modules/aggregator/aggregator.module, line 272
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function _aggregator_has_categories() {
  return user_access('access news feeds') && db_result(db_query('SELECT COUNT(*) FROM {aggregator_category}'));
}