function _aggregator_has_categories

cis7 aggregator.module _aggregator_has_categories()
cle7 aggregator.module _aggregator_has_categories()
elmsmedia7 aggregator.module _aggregator_has_categories()
icor7 aggregator.module _aggregator_has_categories()
meedjum_blog7 aggregator.module _aggregator_has_categories()
mooc7 aggregator.module _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
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();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.