You are here

function _yandex_metrics_is_popular_content_enabled in Yandex.Metrics 7

Same name and namespace in other branches
  1. 6 yandex_metrics.module \_yandex_metrics_is_popular_content_enabled()
1 call to _yandex_metrics_is_popular_content_enabled()
yandex_metrics_cron in ./yandex_metrics.module
Implementation of hook_cron().

File

./yandex_metrics.module, line 1353
The main code of Yandex.Metrics module.

Code

function _yandex_metrics_is_popular_content_enabled() {
  $result = db_select("block")
    ->condition("module", "yandex_metrics")
    ->condition("delta", "popular_content")
    ->condition("status", 1)
    ->fields('block')
    ->execute()
    ->fetchField();
  return !empty($result);
}