You are here

function support_substatus_menu in Support Ticketing System 6

Implementation of hook_menu().

File

support_substatus/support_substatus.module, line 26
Support Substatus -- allows per-status sub-status values, so for example a "pending" ticket can be further marked with "needs review", etc. @author Jeremy Andrews <jeremy@tag1consulting.com> @package Support

Code

function support_substatus_menu() {
  $items = array();
  $items['admin/support/substatus'] = array(
    'title' => 'Status',
    'description' => 'Configure support substatus fields',
    'page callback' => 'support_substatus_admin_overview',
    'access arguments' => array(
      'administer support substatus',
    ),
    'file' => 'support_substatus.admin.inc',
  );
  $items['admin/support/substatus/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/support/substatus/add'] = array(
    'title' => 'Add substatus',
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'support_substatus_admin_form',
    ),
    'access arguments' => array(
      'administer support substatus',
    ),
    'file' => 'support_substatus.admin.inc',
  );
  $items['admin/support/substatus/%support_substatus/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'support_substatus_admin_form',
      3,
    ),
    'access arguments' => array(
      'administer support substatus',
    ),
    'file' => 'support_substatus.admin.inc',
  );

  // TODO: Add paths to substatus-filtered listings
  return $items;
}