function _commerce_ups_service_list in Commerce UPS 7.2
Same name and namespace in other branches
- 7 commerce_ups.module \_commerce_ups_service_list()
Convenience function to get UPS codes for their services.
3 calls to _commerce_ups_service_list()
- commerce_ups_commerce_shipping_service_info in ./
commerce_ups.module - Implements hook_commerce_shipping_service_info().
- commerce_ups_commerce_shipping_service_name in ./
commerce_ups.module - List of Shipping Service.
- commerce_ups_settings_form in includes/
commerce_ups.admin.inc - Implements hook_settings_form().
File
- ./
commerce_ups.module, line 142 - Handles main functionality for Commerce UPS module.
Code
function _commerce_ups_service_list() {
$services = array(
// Domestic services.
'03' => array(
'title' => t('UPS Ground'),
'description' => t('Ground Delivery'),
'slug' => 'ups_ground',
),
'01' => array(
'title' => t('UPS Next Day Air'),
'description' => t('Next Day Air'),
'slug' => 'ups_next_day_air',
),
'13' => array(
'title' => t('UPS Next Day Air Saver'),
'description' => t('Next Day Air Saver'),
'slug' => 'ups_next_day_air_saver',
),
'14' => array(
'title' => t('UPS Next Day Early A.M.'),
'description' => t('Next Day Early A.M.'),
'slug' => 'ups_next_day_early_a.m.',
),
'02' => array(
'title' => t('UPS 2nd Day Air'),
'description' => t('2nd Day Air'),
'slug' => 'ups_2nd_day_air',
),
'59' => array(
'title' => t('UPS 2nd Day Air A.M.'),
'description' => t('2nd Day Air A.M.'),
'slug' => 'ups_2nd_day_air_a.m.',
),
'12' => array(
'title' => t('UPS 3 Day Select'),
'description' => t('3 Day Select'),
'slug' => 'ups_3_day_select.',
),
// International services.
'11' => array(
'title' => t('UPS Standard'),
'description' => t('International Standard'),
'slug' => 'ups_standard',
),
'07' => array(
'title' => t('UPS Worldwide Express'),
'description' => t('Worldwide Express'),
'slug' => 'ups_worldwide_express',
),
'08' => array(
'title' => t('UPS Worldwide Expedited'),
'description' => t('Worldwide Expedited'),
'slug' => 'ups_worldwide_expedited',
),
'54' => array(
'title' => t('UPS Worldwide Express Plus'),
'description' => t('Worldwide Express Plus'),
'slug' => 'ups_worldwide_express_plus',
),
'65' => array(
'title' => t('UPS Worldwide Saver'),
'description' => t('Worldwide Saver'),
'slug' => 'ups_worldwide_saver',
),
);
drupal_alter('commerce_ups_service_list', $services);
return $services;
}