function uc_ups_shipping_type in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_ups/uc_ups.module \uc_ups_shipping_type()
Implements hook_shipping_type().
File
- shipping/
uc_ups/ uc_ups.module, line 226 - Shipping quote module that interfaces with www.ups.com to get rates for small package shipments.
Code
function uc_ups_shipping_type() {
$weight = variable_get('uc_quote_type_weight', array(
'small_package' => 0,
));
$types = array();
$types['small_package'] = array(
'id' => 'small_package',
'title' => t('Small packages'),
'weight' => $weight['small_package'],
);
return $types;
}