<?php
uc_order_status_data($status_id, $key)
?>Description:
This function is used to return a piece of data from an order status array.
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.
Example:
<?php
// Put an order status's title in a form.
$form['order']['order_status'] = array(
'#value' => uc_order_status_data($status_id, 'title'),
);
?>