function uc_order_delete_confirm_form_submit in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_order/uc_order.admin.inc \uc_order_delete_confirm_form_submit()
- 7.3 uc_order/uc_order.admin.inc \uc_order_delete_confirm_form_submit()
File
- uc_order/
uc_order.module, line 2152
Code
function uc_order_delete_confirm_form_submit($form_id, $form_values) {
// Delete the specified order.
uc_order_delete($form_values['order_id']);
// Display a message to the user and return to the order admin page.
drupal_set_message(t('Order @order_id completely removed from the database.', array(
'@order_id' => $form_values['order_id'],
)));
return 'admin/store/orders';
}