You are here

function _uc_usps_services in Ubercart 5

Same name and namespace in other branches
  1. 6.2 shipping/uc_usps/uc_usps.module \_uc_usps_services()
  2. 7.3 shipping/uc_usps/uc_usps.module \_uc_usps_services()

Convenience function for select form elements.

3 calls to _uc_usps_services()
uc_usps_admin_settings in shipping/uc_usps/uc_usps.module
Configure USPS settings.
uc_usps_quote in shipping/uc_usps/uc_usps.module
Callback for retrieving USPS shipping quote.
uc_usps_shipping_method in shipping/uc_usps/uc_usps.module
Implementation of Übercart's hook_shipping_method().

File

shipping/uc_usps/uc_usps.module, line 708
Shipping quote method module that receives quotes from the United States Postal Service via XML web service.

Code

function _uc_usps_services() {
  return array(
    'zero' => t('U.S.P.S. First-Class Mail'),
    'zeroFlat' => t('U.S.P.S. First-Class Flat'),
    'zeroParcel' => t('U.S.P.S. First-Class Parcel'),
    1 => t('U.S.P.S. Priority Mail'),
    2 => t('U.S.P.S. Express Mail PO to PO'),
    3 => t('U.S.P.S. Express Mail PO to Addressee'),
    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'),
    12 => t('U.S.P.S. First-Class Postcard Stamped'),
    13 => t('U.S.P.S. Express Mail Flat-Rate Envelope'),
    16 => t('U.S.P.S. Priority Mail Flat-Rate Envelope'),
    17 => t('U.S.P.S. Priority Mail Flat-Rate Box'),
  );
}