You are here

function commerce_usps_service_list in Commerce USPS 7

Same name and namespace in other branches
  1. 7.2 commerce_usps.module \commerce_usps_service_list()

Returns USPS codes for their services.

Return value

array USPS codes for making the XML request

2 calls to commerce_usps_service_list()
commerce_usps_commerce_shipping_service_info in ./commerce_usps.module
Implements hook_commerce_shipping_service_info().
commerce_usps_settings_form in ./commerce_usps.inc
Form builder function for module settings.

File

./commerce_usps.module, line 154
Defines the USPS shipping method and services for Drupal Commerce.

Code

function commerce_usps_service_list() {
  return array(
    'FIRST CLASS' => t('First Class'),
    'PRIORITY' => t('Priority'),
    'EXPRESS' => t('Express'),
    'PARCEL' => t('Parcel'),
    'MEDIA' => t('Media'),
    'LIBRARY' => t('Library'),
  );
}