function yandex_metrics_help in Yandex.Metrics 6
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()
- 7.3 yandex_metrics.module \yandex_metrics_help()
- 7 yandex_metrics.module \yandex_metrics_help()
- 7.2 yandex_metrics.module \yandex_metrics_help()
Implementation of hook_help.
File
- ./
yandex_metrics.module, line 1275 - The main code of Yandex.Metrics 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.Metrics</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 module allows to integrate your site with <a href="@yandex_metrika" target="_blank">Yandex.Metrics</a> service. You can install counter code on the site pages, authorize the site on Yandex and view basic reports by key effectiveness indicators.', 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/settings/yandex_metrics'),
)) . '</dd>';
$output .= '<dt>' . t('Authorizing site') . '</dt>';
$output .= '<dd>' . t('To get access to the <a href="@reports-url">reports</a> register Yandex application at !app_register_link. Then enter your application Client ID and Client Secret in the appropriate fields on the <a href="@authorization-page">Authorization</a> page. The full list of your Yandex applications is located !app_list_link.', array(
'!app_register_link' => l('https://oauth.yandex.ru/client/new', 'https://oauth.yandex.ru/client/new', array(
'attributes' => array(
'target' => '_blank',
),
)),
'!app_list_link' => l(t('here'), 'https://oauth.yandex.ru/client/my', array(
'attributes' => array(
'target' => '_blank',
),
)),
'@reports-url' => url('admin/reports/yandex_metrics_summary'),
'@authorization-page' => url('admin/settings/yandex_metrics/authorization'),
)) . '</dd>';
$output .= '<dt>' . t('Configuring reports') . '</dt>';
$output .= '<dd>' . t('You can choose necessary reports <a href="@report-setting-page">here</a> to display on <a href="@summary-report-page">Yandex.Metrics Summary Report</a> page. Also, we recommend you to enable AJAX for reports by checking appropriate field on the <a href="@report-setting-page">report settings page</a>.', array(
'@summary-report-page' => url('admin/reports/yandex_metrics_summary'),
'@report-setting-page' => url('admin/settings/yandex_metrics/reports'),
)) . '</dd>';
$output .= '</dl>';
return $output;
case 'admin/settings/yandex_metrics':
$output = '<p>' . 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 install the counter code to work with Yandex.Metrics service.', array(
'@create_counter' => 'http://metrika.yandex.ru/',
)) . '</p>';
return $output;
case 'admin/settings/yandex_metrics/authorization':
$output = '<p>' . t('To get access to the <a href="@reports-url">reports</a> register Yandex application at !app_register_link. Then enter your application Client ID and Client Secret in the appropriate fields on this page. The full list of your Yandex applications is located !app_list_link.', array(
'!app_register_link' => l('https://oauth.yandex.ru/client/new', 'https://oauth.yandex.ru/client/new', array(
'attributes' => array(
'target' => '_blank',
),
)),
'!app_list_link' => l(t('here'), 'https://oauth.yandex.ru/client/my', array(
'attributes' => array(
'target' => '_blank',
),
)),
'@reports-url' => url('admin/reports/yandex_metrics_summary'),
)) . '</p>';
$output .= '<p>' . t('Your Yandex application Callback URI: @callback-uri', array(
'@callback-uri' => url('yandex_metrics/oauth', array(
'absolute' => TRUE,
)),
)) . '</p>';
return $output;
case 'admin/settings/yandex_metrics/reports':
return '<p>' . t('You can choose necessary reports to display on <a href="@summary-report-page">Yandex.Metrics Summary Report</a> page. Also, we recommend you to enable AJAX for reports by checking the appropriate field on this page.', array(
'@summary-report-page' => url('admin/reports/yandex_metrics_summary'),
)) . '</p>';
}
}