You are here

function charts_system_menu in Charts 6

Same name and namespace in other branches
  1. 7 charts_system/charts_system.hooks.inc \charts_system_menu()

Implementation of hook_menu().

File

charts_system/charts_system.module, line 12
@author Bruno Massa http://drupal.org/user/67164 @author TJ (based on his Chart module)

Code

function charts_system_menu() {
  $items['admin/reports/charts'] = array(
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'charts_system.inc',
    'page callback' => '_charts_system_charts',
    'page arguments' => array(
      'nodes',
    ),
    'title' => 'Charts',
  );
  $items['admin/reports/charts/nodes'] = array(
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'charts_system.inc',
    'page callback' => '_charts_system_charts',
    'page arguments' => array(
      'nodes',
    ),
    'title' => 'Nodes',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/reports/charts/users'] = array(
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'charts_system.inc',
    'page callback' => '_charts_system_charts',
    'page arguments' => array(
      'users',
    ),
    'title' => 'Users',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/reports/charts/watchdog'] = array(
    'access arguments' => array(
      'access site reports',
    ),
    'file' => 'charts_system.inc',
    'page callback' => '_charts_system_charts',
    'page arguments' => array(
      'watchdog',
    ),
    'title' => 'Watchdog',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}