function uc_quote_shipping_type_options in Ubercart 5
Same name and namespace in other branches
- 8.4 shipping/uc_quote/uc_quote.module \uc_quote_shipping_type_options()
- 6.2 shipping/uc_quote/uc_quote.module \uc_quote_shipping_type_options()
- 7.3 shipping/uc_quote/uc_quote.module \uc_quote_shipping_type_options()
Returns an array of shipping types to be selected in a form.
3 calls to uc_quote_shipping_type_options()
- uc_quote_form_alter in shipping/
uc_quote/ uc_quote.module - Implementation of hook_form_alter().
- uc_quote_method_settings in shipping/
uc_quote/ uc_quote.module - Settings for the shipping quote methods.
- uc_quote_overview in shipping/
uc_quote/ uc_quote.module - Display a summary of the shipping quote settings.
File
- shipping/
uc_quote/ uc_quote.module, line 1537 - The controller module for fulfillment modules that process physical goods.
Code
function uc_quote_shipping_type_options() {
$ship_types = module_invoke_all('shipping_type');
uasort($ship_types, '_uc_quote_type_sort');
$types = array();
foreach ($ship_types as $ship_type) {
$types[$ship_type['id']] = $ship_type['title'];
}
if (!count($types)) {
$types['small_package'] = t('Small package');
}
return $types;
}