You are here

function uc_quote_shipping_method_options in Ubercart 5

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

Returns an array of shipping methods to be selected in a form.

2 calls to uc_quote_shipping_method_options()
theme_uc_quote_method_settings in shipping/uc_quote/uc_quote.module
Display a formatted list of shipping quote methods and form elements.
uc_quote_method_settings in shipping/uc_quote/uc_quote.module
Settings for the shipping quote methods.

File

shipping/uc_quote/uc_quote.module, line 1553
The controller module for fulfillment modules that process physical goods.

Code

function uc_quote_shipping_method_options() {
  $methods = module_invoke_all('shipping_method');
  uasort($methods, '_uc_quote_type_sort');
  $types = array();
  foreach ($methods as $method) {
    $types[$method['id']] = $method['title'];
  }
  return $types;
}