_aggregator_has_categories

Versions
6 – 7
_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.

Code

modules/aggregator/aggregator.module, line 296

<?php
function _aggregator_has_categories() {
  return user_access('access news feeds') && db_query('SELECT COUNT(*) FROM {aggregator_category}')->fetchField();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.