_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 272
<?php
function _aggregator_has_categories() {
return user_access('access news feeds') && db_result(db_query('SELECT COUNT(*) FROM {aggregator_category}'));
}
?>Login or register to post comments 