function uc_ups_menu in Ubercart 6.2
Same name and namespace in other branches
- 8.4 shipping/uc_ups/uc_ups.module \uc_ups_menu()
- 5 shipping/uc_ups/uc_ups.module \uc_ups_menu()
- 7.3 shipping/uc_ups/uc_ups.module \uc_ups_menu()
Implements hook_menu().
File
- shipping/
uc_ups/ uc_ups.module, line 16 - Shipping quote module that interfaces with www.ups.com to get rates for small package shipments.
Code
function uc_ups_menu() {
$items = array();
$items['admin/store/settings/quotes/methods/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',
),
'type' => MENU_CALLBACK,
'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',
),
'type' => MENU_CALLBACK,
'file' => 'uc_ups.ship.inc',
);
return $items;
}