You are here

function uc_order_status_data in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_order/uc_order.module \uc_order_status_data()
  2. 6.2 uc_order/uc_order.module \uc_order_status_data()

Returns a bit of data from a status array based on status ID and array key.

Parameters

$status_id: The ID of the order status you want to get data from.

$key: The key in the status array whose value you want: id, title, state, weight.

Return value

The value of the key you specify.

12 calls to uc_order_status_data()
hook_uc_calculate_tax in uc_taxes/uc_taxes.api.php
Calculates tax line items for an order.
uc_cart_checkout in uc_cart/uc_cart.pages.inc
Displays the cart checkout page built of checkout panes from enabled modules.
uc_cart_checkout_review in uc_cart/uc_cart.pages.inc
Allows a customer to review their order before finally submitting it.
uc_cart_complete_sale in uc_cart/uc_cart.module
Completes a sale, including adjusting order status and creating user account.
uc_order_actions in uc_order/uc_order.module
Returns the actions a user may perform on an order.

... See full list

File

uc_order/uc_order.module, line 2047

Code

function uc_order_status_data($status_id, $key) {
  static $statuses;
  if (empty($statuses)) {
    $data = uc_order_status_list();
    foreach ($data as $status) {
      $statuses[$status['id']] = $status;
    }
  }
  return $statuses[$status_id][$key];
}