function xhprof_menu in XHProf 6
Same name and namespace in other branches
- 7 xhprof.module \xhprof_menu()
Implementation of hook_menu().
File
- ./
xhprof.module, line 12
Code
function xhprof_menu() {
$items = array();
$items[XHPROF_PATH] = array(
'title' => 'XHProf runs',
'page callback' => 'xhprof_run_list',
'access arguments' => array(
'access xhprof data',
),
'description' => 'View XHProf profiling data.',
);
$items[XHPROF_PATH . '/%'] = array(
'title' => 'XHProf view',
'page callback' => 'xhprof_display_page',
'page arguments' => array(
3,
),
'access arguments' => array(
'access xhprof data',
),
);
$items[XHPROF_PATH . '/diff/%/%'] = array(
'title' => 'XHProf view',
'page callback' => 'xhprof_display_diff_page',
'page arguments' => array(
4,
5,
),
'access arguments' => array(
'access xhprof data',
),
);
$items[XHPROF_PATH . '/%/symbol/%'] = array(
'title' => 'XHProf view',
'page callback' => 'xhprof_display_page',
'page arguments' => array(
3,
5,
),
'access arguments' => array(
'access xhprof data',
),
);
$items['admin/settings/xhprof'] = array(
'title' => 'XHProf settings',
'description' => 'Configure XHProf profiler settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'xhprof_admin_settings',
),
'file' => 'xhprof.admin.inc',
'access arguments' => array(
'administer site configuration',
),
);
return $items;
}