You are here

function commerce_order_status_load in Commerce Core 7

Returns an order status object.

Parameters

$name: The machine readable name string of the status to return.

Return value

The fully loaded status object or FALSE if not found.

10 calls to commerce_order_status_load()
CommerceOrderUIAdminTest::testCommerceOrderUIViewOrderAdmin in modules/order/tests/commerce_order_ui.test
Check the integrity of the order admin page and also if a given order is displayed correctly.
commerce_cart_line_item_views_form_submit in modules/cart/commerce_cart.module
Submit handler to show the shopping cart updated message.
commerce_checkout_complete_access in modules/checkout/commerce_checkout.module
Determines if the given order should have access to the checkout completion page based on its order status.
commerce_checkout_order_uri in modules/checkout/commerce_checkout.module
Returns the current checkout URI for the given order.
commerce_checkout_page_access in modules/checkout/commerce_checkout.module
Checks access to a particular checkout page for a given order.

... See full list

File

modules/order/commerce_order.module, line 1175
Defines the core Commerce order entity and API functions to manage orders and interact with them.

Code

function commerce_order_status_load($name) {
  $order_statuses = commerce_order_statuses();
  if (isset($order_statuses[$name])) {
    return $order_statuses[$name];
  }
  return FALSE;
}