function uc_order_admin_sort_form_submit in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order.module \uc_order_admin_sort_form_submit()
Form submission handler for uc_order_admin_sort_form().
See also
File
- uc_order/
uc_order.admin.inc, line 580 - Order administration menu items.
Code
function uc_order_admin_sort_form_submit($form, &$form_state) {
if ($form_state['values']['status'] == '-1') {
unset($_SESSION['sort_status']);
drupal_goto('admin/store/orders');
}
else {
$_SESSION['sort_status'] = $form_state['values']['status'];
drupal_goto('admin/store/orders/sort/' . $form_state['values']['status']);
}
}