You are here

function ws_performance_menu in Web Service Data 7

Implements hook_menu().

File

modules/ws_performance/ws_performance.module, line 26

Code

function ws_performance_menu() {
  $items = array();

  // WS Performance config page.
  $items['admin/config/services/ws_performance'] = array(
    'description' => 'Configure WS Performance',
    'title' => 'WS Performance Configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ws_performance_config_form',
    ),
    'access arguments' => array(
      'administer ws performance',
    ),
    'file' => 'ws_performance.admin.inc',
  );

  // WS Performance Reports page.
  $items['admin/reports/ws_performance'] = array(
    'description' => 'WS Performance',
    'title' => 'WS Performance',
    'page callback' => 'ws_performance_overview',
    'access arguments' => array(
      'view anonymized ws performance reports',
    ),
    'file' => 'ws_performance.admin.inc',
  );

  // Performance page for a wsconfig.
  $items['admin/reports/ws_performance/%wsconfig'] = array(
    'title' => 'WSConfig Performance Report',
    'page callback' => 'ws_performance_report',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'view anonymized ws performance reports',
    ),
    'file' => 'ws_performance.admin.inc',
  );

  // Performance page for particular wsconfig call.
  $items['admin/reports/ws_performance/%wsconfig/%'] = array(
    'title' => 'WS Call Performance',
    'page callback' => 'ws_performance_specific_report',
    'page arguments' => array(
      3,
      4,
    ),
    'access arguments' => array(
      'view specific ws performance reports',
    ),
    'file' => 'ws_performance.admin.inc',
  );
  return $items;
}