You are here

function piwik_menu in Piwik Web Analytics 6

Same name and namespace in other branches
  1. 5 piwik.module \piwik_menu()
  2. 6.2 piwik.module \piwik_menu()
  3. 7.2 piwik.module \piwik_menu()
  4. 7 piwik.module \piwik_menu()

File

./piwik.module, line 25
Drupal Module: Piwik Adds the required Javascript to the bottom of all your Drupal pages to allow tracking by the Piwik statistics package.

Code

function piwik_menu() {
  $items['admin/settings/piwik'] = array(
    'title' => 'Piwik',
    'description' => 'Configure the settings used to generate your Piwik tracking code.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'piwik_admin_settings_form',
    ),
    'access arguments' => array(
      'administer piwik',
    ),
    'file' => 'piwik.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}