You are here

function hook_commerce_order_state_info_alter in Commerce Core 7

Allows modules to alter the order state definitions of other modules.

Parameters

$order_states: An array of order states defined by enabled modules.

See also

hook_commerce_order_state_info()

1 function implements hook_commerce_order_state_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

commerce_checkout_commerce_order_state_info_alter in modules/checkout/commerce_checkout.module
Implements hook_commerce_order_state_info_alter().
1 invocation of hook_commerce_order_state_info_alter()
commerce_order_states in modules/order/commerce_order.module
Returns an array of all the order states keyed by name.

File

modules/order/commerce_order.api.php, line 66
Hooks provided by the Order module.

Code

function hook_commerce_order_state_info_alter(&$order_states) {
  $order_states['completed']['weight'] = 9;
}