You are here

function commerce_order_commerce_order_status_info in Commerce Core 7

Implements hook_commerce_order_status_info().

File

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

Code

function commerce_order_commerce_order_status_info() {
  $order_statuses = array();
  $order_statuses['canceled'] = array(
    'name' => 'canceled',
    'title' => t('Canceled'),
    'state' => 'canceled',
  );
  $order_statuses['pending'] = array(
    'name' => 'pending',
    'title' => t('Pending'),
    'state' => 'pending',
  );
  $order_statuses['processing'] = array(
    'name' => 'processing',
    'title' => t('Processing'),
    'state' => 'pending',
    'weight' => 5,
  );
  $order_statuses['completed'] = array(
    'name' => 'completed',
    'title' => t('Completed'),
    'state' => 'completed',
  );
  return $order_statuses;
}