function piwik_reports_menu in Piwik Reports 7.2
Same name and namespace in other branches
- 6 piwik_reports.module \piwik_reports_menu()
- 7.4 piwik_reports.module \piwik_reports_menu()
- 7.3 piwik_reports.module \piwik_reports_menu()
Implements hook_menu().
File
- ./
piwik_reports.module, line 25 - Defines features and functions common to Piwik Reports
Code
function piwik_reports_menu() {
// Reports
$items['admin/reports/piwik_reports'] = array(
'title' => 'Piwik web analytics',
'page callback' => 'piwik_reports_menu_block_page',
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'description' => 'Reports on your website visitors, your popular pages, the search engines keywords they used... and so much more.',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/piwik_reports/visitors'] = array(
'title' => 'Visitors',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'visitors_overview',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 1,
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/piwik_reports/visitors/overview'] = array(
'title' => 'Overview',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'visitors_overview',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/visitors/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'visitors_settings',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 2,
'type' => MENU_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/visitors/times'] = array(
'title' => 'Times',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'visitors_times',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 3,
'type' => MENU_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/visitors/locations'] = array(
'title' => 'Locations provider',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'visitors_locations',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 4,
'type' => MENU_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/actions'] = array(
'title' => 'Actions',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'actions_pageurls',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 2,
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/piwik_reports/actions/pages'] = array(
'title' => 'Pages',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'actions_pageurls',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/actions/outlinks'] = array(
'title' => 'Outlinks',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'actions_outlinks',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 2,
'type' => MENU_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/actions/downloads'] = array(
'title' => 'Downloads',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'actions_downloads',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 3,
'type' => MENU_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/referers'] = array(
'title' => 'Referers',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'referers_evolution',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 3,
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/piwik_reports/referers/evolution'] = array(
'title' => 'Evolution',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'referers_evolution',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/referers/search'] = array(
'title' => 'Search engines & keywords',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'referers_search',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 2,
'type' => MENU_LOCAL_TASK,
);
$items['admin/reports/piwik_reports/referers/websites'] = array(
'title' => 'Websites',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'piwik_reports_reports',
'referers_websites',
),
'access arguments' => array(
'access site reports',
),
'file' => 'piwik_reports.pages.inc',
'weight' => 3,
'type' => MENU_LOCAL_TASK,
);
return $items;
}