You are here

function uc_usps_shipping_type in Ubercart 5

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

Implementation of Übercart's hook_shipping_type().

File

shipping/uc_usps/uc_usps.module, line 150
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(
    'small_package' => 0,
  ));
  $types = array(
    'small_package' => array(
      'id' => 'small_package',
      'title' => t('Small package'),
      'weight' => $weight['small_package'],
    ),
  );
  return $types;
}