function uc_order_state_data in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_order/uc_order.module \uc_order_state_data()
- 6.2 uc_order/uc_order.module \uc_order_state_data()
Returns a bit of data from a state array based on the state ID and array key.
Parameters
$state_id: The ID of the order state you want to get data from.
$key: The key in the state array whose value you want: id, title, weight, scope.
Return value
The value of the key you specify.
1 call to uc_order_state_data()
- uc_order_workflow_form in uc_order/
uc_order.admin.inc - Displays the order workflow form for order state and status customization.
File
- uc_order/
uc_order.module, line 1937
Code
function uc_order_state_data($state_id, $key) {
static $states;
if (empty($states)) {
$states = uc_order_state_list();
}
return $states[$state_id][$key];
}