<?php
hook_shipping_type()
?>Description:
This hook defines a shipping type that this module is designed to handle. These types are specified by a machine- and human-readable name called 'id', and 'title' respectively. Shipping types may be set for individual products, manufacturers, and for the entire store catalog. Shipping modules should be careful to use the same shipping type ids as other similar shipping modules (i.e., FedEx and UPS both operate on "small package" shipments). Modules that do not fulfill orders may not need to implement this hook.
Return value:
An array of shipping types keyed by a machine-readable name.
Example:
<?php
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;
}
?>