function uc_quote_get_shipping_types in Ubercart 6.2
Same name and namespace in other branches
- 8.4 shipping/uc_quote/uc_quote.module \uc_quote_get_shipping_types()
- 7.3 shipping/uc_quote/uc_quote.module \uc_quote_get_shipping_types()
Returns an array of shipping types.
5 calls to uc_quote_get_shipping_types()
- uc_cart_pane_quotes in shipping/
uc_quote/ uc_quote.module - Cart pane callback.
- uc_quote_condition_product_shipping_type_form in shipping/
uc_quote/ uc_quote.module - Settings form for uc_quote_condition_product_shipping_type().
- uc_quote_shipping_type_options in shipping/
uc_quote/ uc_quote.module - Returns an options array of shipping types.
- uc_shipping_new_shipment in shipping/
uc_shipping/ uc_shipping.admin.inc - Sets up a new shipment with the chosen packages.
- _uc_quote_assemble_quotes in shipping/
uc_quote/ uc_quote.pages.inc - Pulls the get_quote_from_* triggers and assembles their returned data.
File
- shipping/
uc_quote/ uc_quote.module, line 1244 - The controller module for fulfillment modules that process physical goods.
Code
function uc_quote_get_shipping_types() {
$args = array();
$hook = 'shipping_type';
$return = array();
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
$result = call_user_func_array($function, $args);
if (isset($result) && is_array($result)) {
$return = array_merge($return, $result);
}
elseif (isset($result)) {
$return[] = $result;
}
}
return $return;
}