You are here

function perfmon_menu in Performance monitor 7

Implements hook_menu().

File

./perfmon.module, line 11
TODO: Enter file description here.

Code

function perfmon_menu() {
  $items = array();
  $items['admin/reports/perfmon'] = array(
    'title' => 'Performance Monitor',
    'description' => 'Check performance of your site.',
    'page callback' => 'perfmon_page',
    'access arguments' => array(
      'access performance monitor report',
    ),
    'file' => 'perfmon.pages.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/reports/perfmon/run'] = array(
    'title' => 'Performance',
    'access arguments' => array(
      'access performance monitor report',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/reports/perfmon/run/%'] = array(
    'title' => 'Perfmon run test',
    'page callback' => 'perfmon_run_test',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'access performance monitor report',
    ),
    'file' => 'perfmon.pages.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/reports/perfmon/mysql'] = array(
    'title' => 'MySQL',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'perfmon_mysql_page',
    'file' => 'perfmon.pages.inc',
    'access arguments' => array(
      'access performance monitor report',
    ),
  );
  return $items;
}