You are here

function commerce_shipping_service_load in Commerce Shipping 7.2

Returns a single shipping service array.

Parameters

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

Return value

array|bool The specified shipping service array or FALSE if it did not exist.

7 calls to commerce_shipping_service_load()
commerce_shipping_line_item_add_form_submit in ./commerce_shipping.module
Adds the selected shipping information to a new shipping line item.
commerce_shipping_line_item_populate in ./commerce_shipping.module
Populates a shipping line item with the specified values.
commerce_shipping_pane_checkout_form in includes/commerce_shipping.checkout_pane.inc
Checkout pane callback: builds a shipping quote selection form.
commerce_shipping_pane_checkout_form_submit in includes/commerce_shipping.checkout_pane.inc
Checkout pane callback: submit the shipping checkout pane.
commerce_shipping_pane_checkout_form_validate in includes/commerce_shipping.checkout_pane.inc
Checkout pane callback: validate the shipping service selection and details.

... See full list

File

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

Code

function commerce_shipping_service_load($name) {
  $shipping_services = commerce_shipping_services();
  return empty($shipping_services[$name]) ? FALSE : $shipping_services[$name];
}