function uc_usps_shipping_type in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_usps/uc_usps.module \uc_usps_shipping_type()
Implements hook_shipping_type().
File
- shipping/
uc_usps/ uc_usps.module, line 238 - Shipping quote method module that receives quotes from the United States Postal Service via XML web service.
Code
function uc_usps_shipping_type() {
$weight = variable_get('uc_quote_type_weight', array(
'envelope' => -1,
'small_package' => 0,
));
$types = array(
'envelope' => array(
'id' => 'envelope',
'title' => t('Envelope'),
'weight' => $weight['envelope'],
),
'small_package' => array(
'id' => 'small_package',
'title' => t('Small package'),
'weight' => $weight['small_package'],
),
);
return $types;
}