You are here

function _yandex_metrics_is_popular_content_enabled in Yandex.Metrics 6

Same name and namespace in other branches
  1. 7 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 1307
The main code of Yandex.Metrics module.

Code

function _yandex_metrics_is_popular_content_enabled() {
  $result = db_query("SELECT * FROM {blocks} WHERE module = 'yandex_metrics' AND delta = '0' AND status = 1");
  $row = db_fetch_array($result);
  return !empty($row);
}