_aggregator_has_categories

Versions
mediamosa-21
_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 297

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