function yandex_metrics_help in Yandex.Metrics 7.2
Same name and namespace in other branches
- 8.3 yandex_metrics.module \yandex_metrics_help()
- 8.2 yandex_metrics.module \yandex_metrics_help()
- 6.2 yandex_metrics.module \yandex_metrics_help()
- 6 yandex_metrics.module \yandex_metrics_help()
- 7.3 yandex_metrics.module \yandex_metrics_help()
- 7 yandex_metrics.module \yandex_metrics_help()
Implements hook_help().
File
- ./
yandex_metrics.module, line 249 - The main code of Yandex.Metrics Counter module.
Code
function yandex_metrics_help($path, $arg) {
switch ($path) {
case 'admin/help#yandex_metrics':
$output = '';
$output .= '<h3>' . t('About the module') . '</h3>';
$output .= '<p>' . t('The <a href="@yandex_metrika" target="_blank">Yandex.Metrica</a> service is European alternative of Google Analytics. This is a free tool that helps you to increase the conversion rate of your site.', array(
'@yandex_metrika' => 'http://metrika.yandex.ru/',
)) . '</p>';
$output .= '<p>' . t('The Yandex.Metrics Counter module allows to install <a href="@yandex_metrika" target="_blank">Yandex.Metrica</a> counter code on the site pages.', array(
'@yandex_metrika' => 'http://metrika.yandex.ru/',
)) . '</p>';
$output .= '<h3>' . t('Usage') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Installing counter') . '</dt>';
$output .= '<dd>' . t('Yandex.Metrics counter is JavaScript code that monitors user behavior on your website. You should <a href="@create_counter" target="_blank">create</a> and <a href="@install_counter">install</a> the counter to work with Yandex.Metrics service.', array(
'@create_counter' => 'http://metrika.yandex.ru/',
'@install_counter' => url('admin/config/system/yandex_metrics'),
)) . '</dd>';
$output .= '</dl>';
return $output;
case 'admin/config/system/yandex_metrics':
$output = '<p>' . t('Yandex.Metrica counter is JavaScript code that monitors user behavior on your website. You should <a href="@create_counter" target="_blank">create</a> and install the counter code to work with Yandex.Metrica service.', array(
'@create_counter' => 'http://metrika.yandex.ru/',
)) . '</p>';
return $output;
}
}