_aggregator_has_categories
modules/aggregator/aggregator.module, строка 272
- Версии
- 6
_aggregator_has_categories()
Find out whether there are any aggregator categories.
Возвращаемое значение
TRUE
if there is at least one category and the user has access to them, FALSE
otherwise.
Код
<?php
function _aggregator_has_categories() {
return user_access('access news feeds') && db_result(db_query('SELECT COUNT(*) FROM {aggregator_category}'));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии