_aggregator_has_categories

Definition

_aggregator_has_categories()
modules/aggregator/aggregator.module, line 272

Description

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.

Code

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

Drupal is a registered trademark of Dries Buytaert.