Commit 6079963f authored by kbahey's avatar kbahey

- Fix for menus for reports.

parent eeac94c9
......@@ -8,12 +8,11 @@ define('PERFORMANCE_KEY', 'dru-perf:' . $_SERVER['HTTP_HOST'] . ':');
function performance_menu($may_cache) {
$items = array();
if ($may_cache) {
$access = user_access('access administration pages');
$items[] = array(
'path' => 'admin/settings/performance_logging',
'title' => t('Performance Logging'),
'description' => t('Logs performance data: page generation times and memory usage.'),
'access' => $access,
'access' => user_access('access administration pages'),
'callback' => 'drupal_get_form',
'callback arguments' => array('performance_settings'),
);
......@@ -22,29 +21,23 @@ function performance_menu($may_cache) {
'path' => 'admin/settings/performance_logging/apc_clear',
'title' => t('Clear APC'),
'description' => t('Clears performance statistics collected in APC.'),
'access' => $access,
'access' => user_access('access administration pages'),
'callback' => 'drupal_get_form',
'callback arguments' => array('performance_clear_apc_confirm'),
);
$items[] = array(
'path' => 'admin/logs/performance_logging',
'title' => t('Performance Logs'),
'description' => t('View performance logs: summary and details.'),
'access' => $access,
);
$items[] = array(
'path' => 'admin/logs/performance_logging/summary',
'path' => 'admin/logs/performance_logging_summary',
'title' => t('Performance Logs: Summary'),
'description' => t('View summary performance logs: page generation times and memory usage.'),
'access' => $access,
'access' => user_access('access site reports'),
'callback' => 'performance_view_summary',
);
$items[] = array(
'path' => 'admin/logs/performance_logging/details',
'path' => 'admin/logs/performance_logging_details',
'title' => t('Performance Logs: Details'),
'description' => t('View detailed, per page, performance logs: page generation times and memory usage.'),
'access' => $access,
'access' => user_access('access site reports'),
'callback' => 'performance_view_details',
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment