function uc_order_status_data in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order.module \uc_order_status_data()
- 7.3 uc_order/uc_order.module \uc_order_status_data()
Return 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_calculate_tax in docs/
hooks.php - Calculates tax line items for an order.
- uc_2checkout_complete in payment/
uc_2checkout/ uc_2checkout.pages.inc - @file 2checkout menu items.
- uc_cart_checkout_form in uc_cart/
uc_cart.pages.inc - The checkout form built up from the enabled checkout panes.
- 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.
File
- uc_order/
uc_order.module, line 1863
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];
}