function yandex_metrics_menu in Yandex.Metrics 6.2
Same name and namespace in other branches
- 6 yandex_metrics.module \yandex_metrics_menu()
- 7.3 yandex_metrics.module \yandex_metrics_menu()
- 7 yandex_metrics.module \yandex_metrics_menu()
- 7.2 yandex_metrics.module \yandex_metrics_menu()
Implementation of hook_menu().
File
- ./
yandex_metrics.module, line 22 - The main code of Yandex.Metrics Counter module.
Code
function yandex_metrics_menu() {
$items['admin/settings/yandex_metrics'] = array(
'access arguments' => array(
'administer Yandex.Metrics settings',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'yandex_metrics_main_settings',
),
'title' => 'Yandex.Metrics',
'type' => MENU_NORMAL_ITEM,
'description' => 'Integrate your site with Yandex.Metrics service.',
);
$items['admin/settings/yandex_metrics/counter'] = array(
'access arguments' => array(
'administer Yandex.Metrics settings',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'yandex_metrics_main_settings',
),
'title' => 'Counter Code',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 1,
);
return $items;
}