function _yandex_metrics_reports_is_popular_content_enabled in Yandex.Metrics 6.2
Same name and namespace in other branches
- 8.2 yandex_metrics_reports/yandex_metrics_reports.module \_yandex_metrics_reports_is_popular_content_enabled()
- 7.2 yandex_metrics_reports/yandex_metrics_reports.module \_yandex_metrics_reports_is_popular_content_enabled()
1 call to _yandex_metrics_reports_is_popular_content_enabled()
- yandex_metrics_reports_cron in yandex_metrics_reports/
yandex_metrics_reports.module - Implementation of hook_cron().
File
- yandex_metrics_reports/
yandex_metrics_reports.module, line 1049 - The main code of Yandex.Metrics Reports module.
Code
function _yandex_metrics_reports_is_popular_content_enabled() {
$result = db_query("SELECT * FROM {blocks} WHERE module = 'yandex_metrics_reports' AND delta = '0' AND status = 1");
$row = db_fetch_array($result);
return !empty($row);
}