You are here

function yandex_metrics_menu in Yandex.Metrics 7.3

Same name and namespace in other branches
  1. 6.2 yandex_metrics.module \yandex_metrics_menu()
  2. 6 yandex_metrics.module \yandex_metrics_menu()
  3. 7 yandex_metrics.module \yandex_metrics_menu()
  4. 7.2 yandex_metrics.module \yandex_metrics_menu()

Implements hook_menu().

File

./yandex_metrics.module, line 29
The main code of Yandex.Metrics Counter module.

Code

function yandex_metrics_menu() {
  $items = array();
  $items['admin/config/system/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.Metrica service.',
  );
  $items['admin/config/system/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;
}