function _uc_usps_services in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_usps/uc_usps.module \_uc_usps_services()
- 7.3 shipping/uc_usps/uc_usps.module \_uc_usps_services()
Maps parcel shipment services to their IDs.
2 calls to _uc_usps_services()
- uc_usps_admin_settings in shipping/
uc_usps/ uc_usps.admin.inc - Configure USPS settings.
- uc_usps_shipping_method in shipping/
uc_usps/ uc_usps.module - Implements hook_shipping_method().
File
- shipping/
uc_usps/ uc_usps.module, line 854 - Shipping quote method module that receives quotes from the United States Postal Service via XML web service.
Code
function _uc_usps_services() {
return array(
'zeroFlat' => t('U.S.P.S. First-Class Mail Letter'),
'zeroParcel' => t('U.S.P.S. First-Class Mail Parcel'),
1 => t('U.S.P.S. Priority Mail'),
28 => t('U.S.P.S. Priority Mail Small Flat-Rate Box'),
17 => t('U.S.P.S. Priority Mail Regular/Medium Flat-Rate Box'),
22 => t('U.S.P.S. Priority Mail Large Flat-Rate Box'),
3 => t('U.S.P.S. Express Mail'),
23 => t('U.S.P.S. Express Mail Sunday/Holiday Guarantee'),
4 => t('U.S.P.S. Parcel Post'),
5 => t('U.S.P.S. Bound Printed Matter'),
6 => t('U.S.P.S. Media Mail'),
7 => t('U.S.P.S. Library'),
);
}