function yandex_metrics_reports_cron in Yandex.Metrics 8.2
Same name and namespace in other branches
- 6.2 yandex_metrics_reports/yandex_metrics_reports.module \yandex_metrics_reports_cron()
- 7.2 yandex_metrics_reports/yandex_metrics_reports.module \yandex_metrics_reports_cron()
Implements hook_cron().
File
- yandex_metrics_reports/
yandex_metrics_reports.module, line 318 - The main code of Yandex.Metrics Reports module.
Code
function yandex_metrics_reports_cron() {
// Skip cron execution if Popular Content block is not enabled.
if (!_yandex_metrics_reports_is_popular_content_enabled()) {
return;
}
yandex_metrics_reports_save_popular_content(TRUE);
}