You are here

function _uc_usps_services in Ubercart 7.3

Same name and namespace in other branches
  1. 5 shipping/uc_usps/uc_usps.module \_uc_usps_services()
  2. 6.2 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
Configures USPS settings.
uc_usps_uc_shipping_method in shipping/uc_usps/uc_usps.module
Implements hook_uc_shipping_method().

File

shipping/uc_usps/uc_usps.module, line 867
United States Postal Service (USPS) shipping quote module.

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'),
  );
}