function uc_order_action_update_status_form in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order_workflow.inc \uc_order_action_update_status_form()
See also
uc_order_action_update_status()
File
- uc_order/
uc_order.ca.inc, line 1141 - This file contains the Conditional Actions hooks and functions necessary to make the order related entity, conditions, events, and actions work.
Code
function uc_order_action_update_status_form($form_state, $settings = array()) {
foreach (uc_order_status_list('general') as $status) {
$options[$status['id']] = $status['title'];
}
foreach (uc_order_status_list('specific') as $status) {
$options[$status['id']] = $status['title'];
}
$form['order_status'] = array(
'#type' => 'select',
'#title' => t('Order status'),
'#options' => $options,
'#default_value' => isset($settings['order_status']) ? $settings['order_status'] : '',
);
return $form;
}