You are here

function uc_order_action_update_status_form in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_order/uc_order.ca.inc \uc_order_action_update_status_form()

File

uc_order/uc_order_workflow.inc, line 595
This file contains the Workflow-ng hooks and functions necessary to make the order related entity, conditions, events, and actions work.

Code

function uc_order_action_update_status_form($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' => $settings['order_status'],
  );
  return $form;
}