You are here

function support_charts_menu in Support Ticketing System 7

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

Implements hook_menu().

File

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

Code

function support_charts_menu() {
  $items = array();
  $items['admin/support/charts'] = array(
    'title' => 'Charts',
    'description' => 'View support ticketing 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;
}