Skip to content
Snippets Groups Projects
Commit 57146c28 authored by Bruno Massa's avatar Bruno Massa
Browse files

Bugs fixed:

* Drupal 6.2 changed the access rules. Fixed
parent 8f760ab0
No related branches found
No related tags found
No related merge requests found
...@@ -11,31 +11,35 @@ ...@@ -11,31 +11,35 @@
*/ */
function charts_system_menu() { function charts_system_menu() {
$items['admin/reports/charts'] = array( $items['admin/reports/charts'] = array(
'file' => 'charts_system.inc', 'access arguments' => array('access site reports'),
'page callback' => '_charts_system_charts', 'file' => 'charts_system.inc',
'page arguments' => array('nodes'), 'page callback' => '_charts_system_charts',
'title' => 'Charts' 'page arguments' => array('nodes'),
'title' => 'Charts'
); );
$items['admin/reports/charts/nodes'] = array( $items['admin/reports/charts/nodes'] = array(
'file' => 'charts_system.inc', 'access arguments' => array('access site reports'),
'page callback' => '_charts_system_charts', 'file' => 'charts_system.inc',
'page arguments' => array('nodes'), 'page callback' => '_charts_system_charts',
'title' => 'Nodes', 'page arguments' => array('nodes'),
'type' => MENU_DEFAULT_LOCAL_TASK 'title' => 'Nodes',
'type' => MENU_DEFAULT_LOCAL_TASK
); );
$items['admin/reports/charts/users'] = array( $items['admin/reports/charts/users'] = array(
'file' => 'charts_system.inc', 'access arguments' => array('access site reports'),
'page callback' => '_charts_system_charts', 'file' => 'charts_system.inc',
'page arguments' => array('users'), 'page callback' => '_charts_system_charts',
'title' => 'Users', 'page arguments' => array('users'),
'type' => MENU_LOCAL_TASK 'title' => 'Users',
'type' => MENU_LOCAL_TASK
); );
$items['admin/reports/charts/watchdog'] = array( $items['admin/reports/charts/watchdog'] = array(
'file' => 'charts_system.inc', 'access arguments' => array('access site reports'),
'page callback' => '_charts_system_charts', 'file' => 'charts_system.inc',
'page arguments' => array('watchdog'), 'page callback' => '_charts_system_charts',
'title' => 'Watchdog', 'page arguments' => array('watchdog'),
'type' => MENU_LOCAL_TASK 'title' => 'Watchdog',
'type' => MENU_LOCAL_TASK
); );
return $items; return $items;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment