You are here

function support_overview_menu in Support Ticketing System 7

Same name and namespace in other branches
  1. 6 support_overview/support_overview.module \support_overview_menu()

Implements hook_menu().

File

support_overview/support_overview.module, line 27
support_overview.module

Code

function support_overview_menu() {
  $items = array();
  $items['support/overview/user'] = array(
    'title' => 'User ticket overview',
    'page callback' => 'support_overview_page_users',
    'access arguments' => array(
      'view user overview',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['support/overview/user/all'] = array(
    'title' => 'User ticket overview',
    'page callback' => 'support_overview_page_users',
    'access arguments' => array(
      'view user overview',
    ),
    'page arguments' => array(
      TRUE,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['support/overview/user/%user'] = array(
    'page callback' => 'support_overview_page_user',
    'page arguments' => array(
      3,
    ),
    'access callback' => 'support_access_user_tickets',
    'access arguments' => array(
      3,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['support/overview/user/%user/all'] = array(
    'page callback' => 'support_overview_page_user',
    'page arguments' => array(
      3,
      TRUE,
    ),
    'access callback' => 'support_access_user_tickets',
    'access arguments' => array(
      3,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['support/overview/client'] = array(
    'title' => 'Client ticket overview',
    'description' => 'Support client overview',
    'page callback' => 'support_overview_summary',
    'access arguments' => array(
      'view client overview',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/support/overview'] = array(
    'title' => 'Overview settings',
    'description' => 'Support client overview',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'support_overview_summary_settings',
    ),
    'access arguments' => array(
      'administer support overview',
    ),
    //    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 2,
  );
  return $items;
}