You are here

function uc_ups_menu in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 shipping/uc_ups/uc_ups.module \uc_ups_menu()
  2. 5 shipping/uc_ups/uc_ups.module \uc_ups_menu()
  3. 6.2 shipping/uc_ups/uc_ups.module \uc_ups_menu()

Implements hook_menu().

File

shipping/uc_ups/uc_ups.module, line 15
UPS shipping quote module.

Code

function uc_ups_menu() {
  $items = array();
  $items['admin/store/settings/quotes/settings/ups'] = array(
    'title' => 'UPS',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_ups_admin_settings',
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'uc_ups.admin.inc',
  );
  $items['admin/store/orders/%uc_order/shipments/ups'] = array(
    'title' => 'UPS shipment',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_ups_confirm_shipment',
      3,
    ),
    'access arguments' => array(
      'fulfill orders',
    ),
    'file' => 'uc_ups.ship.inc',
  );
  $items['admin/store/orders/%uc_order/shipments/labels/ups'] = array(
    'page callback' => 'theme',
    'page arguments' => array(
      'uc_ups_label_image',
    ),
    'access arguments' => array(
      'fulfill orders',
    ),
    'file' => 'uc_ups.ship.inc',
  );
  return $items;
}