function yandex_metrics_footer in Yandex.Metrics 6.2
Same name and namespace in other branches
- 6 yandex_metrics.module \yandex_metrics_footer()
Implementation of hook_footer. Adds Yandex.Metrics counter code to the site footer.
Parameters
int $main:
File
- ./
yandex_metrics.module, line 154 - The main code of Yandex.Metrics Counter module.
Code
function yandex_metrics_footer($main = 0) {
$yandex_metrics_counter_code = variable_get('yandex_metrics_counter_code', '');
if (!empty($yandex_metrics_counter_code) && yandex_metrics_show_counter() && yandex_metrics_show_counter_for_role()) {
return '<div class="ym-counter">' . $yandex_metrics_counter_code . '</div>';
}
}