function uc_order_condition_check_order_state_form in Ubercart 6.2
See also
uc_order_condition_check_order_state()
File
- uc_order/
uc_order.ca.inc, line 404 - 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_condition_check_order_state_form($form_state, $settings = array()) {
foreach (uc_order_state_list('general') as $state) {
$options[$state['id']] = $state['title'];
}
foreach (uc_order_state_list('specific') as $state) {
$options[$state['id']] = $state['title'];
}
$form['order_state'] = array(
'#type' => 'select',
'#title' => t('Order state'),
'#options' => $options,
'#default_value' => isset($settings['order_state']) ? $settings['order_state'] : '',
);
return $form;
}