You are here

function uc_order_status_create_form_submit in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_order/uc_order.admin.inc \uc_order_status_create_form_submit()
  2. 7.3 uc_order/uc_order.admin.inc \uc_order_status_create_form_submit()

File

uc_order/uc_order.module, line 1010

Code

function uc_order_status_create_form_submit($form_id, $form_values) {
  db_query("INSERT INTO {uc_order_statuses} (order_status_id, title, state, " . "weight, locked) VALUES ('%s', '%s', '%s', %d, 0)", $form_values['status_id'], $form_values['status_title'], $form_values['status_state'], $form_values['status_weight']);
  drupal_set_message(t('Custom order status created.'));
  return 'admin/store/settings/orders/edit/workflow';
}