You are here

function yandex_metrics_footer in Yandex.Metrics 6

Same name and namespace in other branches
  1. 6.2 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 846
The main code of Yandex.Metrics 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 style="clear:both;">' . $yandex_metrics_counter_code . '</div>';
  }
}