You are here

function support_charts_menu in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 support_charts/support_charts.module \support_charts_menu()

Implementation of hook_menu().

File

support_charts/support_charts.module, line 20
Support charting. @author Jeremy Andrews <jeremy@tag1consulting.com> @package Support

Code

function support_charts_menu() {
  $items = array();
  $items['admin/support/charts'] = array(
    'title' => 'Charts',
    'page callback' => 'support_charts',
    'page arguments' => array(
      'global',
    ),
    'access arguments' => array(
      'access support charts',
    ),
  );
  $items['admin/support/charts/global'] = array(
    'title' => 'Global',
    'page callback' => 'support_charts',
    'page arguments' => array(
      'global',
    ),
    'access arguments' => array(
      'access support charts',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['user/%user/support_charts'] = array(
    'title' => 'Support charts',
    'page callback' => 'support_charts',
    'page arguments' => array(
      'user_opened',
      1,
    ),
    'access arguments' => array(
      'access support charts',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['user/%user/support_charts/opened'] = array(
    'title' => 'Opened',
    'weight' => 1,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['user/%user/support_charts/assigned'] = array(
    'title' => 'Assigned',
    'page callback' => 'support_charts',
    'page arguments' => array(
      'user_assigned',
      1,
    ),
    'access arguments' => array(
      'access support charts',
    ),
    'weight' => 2,
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}