You are here

function commerce_shipping_method_load in Commerce Shipping 7.2

Returns a shipping method array.

Parameters

string $name: The machine-name of the shipping method to return.

Return value

array|bool The fully loaded shipping method array or FALSE if not found.

File

./commerce_shipping.module, line 256
Defines a system for calculating shipping costs associated with an order.

Code

function commerce_shipping_method_load($name) {
  $shipping_methods = commerce_shipping_methods();
  return isset($shipping_methods[$name]) ? $shipping_methods[$name] : FALSE;
}