You are here

function mandrill_reports_menu in Mandrill 7

Same name and namespace in other branches
  1. 7.2 modules/mandrill_reports/mandrill_reports.module \mandrill_reports_menu()

Implements hook_menu().

File

modules/mandrill_reports/mandrill_reports.module, line 10
Main module functions for mandrill_reports.

Code

function mandrill_reports_menu() {
  $items = array();
  $items['admin/reports/mandrill'] = array(
    'title' => 'Mandrill',
    'page callback' => 'mandrill_reports_dashboard_page',
    'access arguments' => array(
      'view mandrill reports',
    ),
    'description' => 'View Mandrill dashboard.',
  );
  $items['admin/reports/mandrill/dashboard'] = array(
    'title' => 'Dashboard',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/reports/mandrill/summary'] = array(
    'title' => 'Account summary',
    'page callback' => 'mandrill_reports_summary_page',
    'access arguments' => array(
      'view mandrill reports',
    ),
    'description' => 'View account summary.',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}