You are here

function hook_commerce_order_status_info_alter in Commerce Core 7

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

Parameters

$order_statuses: An array of order statuses defined by enabled modules.

See also

hook_commerce_order_status_info()

1 invocation of hook_commerce_order_status_info_alter()
commerce_order_statuses in modules/order/commerce_order.module
Returns an array of some or all of the order statuses keyed by name.

File

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

Code

function hook_commerce_order_status_info_alter(&$order_statuses) {
  $order_statuses['completed']['title'] = t('Finished');
}