function _uc_ups_pkg_types in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_ups/uc_ups.module \_uc_ups_pkg_types()
- 7.3 shipping/uc_ups/uc_ups.module \_uc_ups_pkg_types()
Convenience function to get UPS codes for their package types.
6 calls to _uc_ups_pkg_types()
- uc_ups_admin_settings in shipping/
uc_ups/ uc_ups.admin.inc - UPS Online Tool settings.
- uc_ups_form_alter in shipping/
uc_ups/ uc_ups.module - Implements hook_form_alter().
- uc_ups_fulfill_order in shipping/
uc_ups/ uc_ups.ship.inc - Shipment creation callback.
- uc_ups_shipment_request in shipping/
uc_ups/ uc_ups.ship.inc - Constructs an XML shipment request.
- uc_ups_shipping_method in shipping/
uc_ups/ uc_ups.module - Implements hook_shipping_method().
File
- shipping/
uc_ups/ uc_ups.module, line 882 - Shipping quote module that interfaces with www.ups.com to get rates for small package shipments.
Code
function _uc_ups_pkg_types() {
return array(
'01' => t('UPS Letter'),
'02' => t('Customer Supplied Package'),
'03' => t('Tube'),
'04' => t('PAK'),
'21' => t('UPS Express Box'),
'24' => t('UPS 25KG Box'),
'25' => t('UPS 10KG Box'),
'30' => t('Pallet'),
'2a' => t('Small Express Box'),
'2b' => t('Medium Express Box'),
'2c' => t('Large Express Box'),
);
}