function uc_order_delete_confirm_form in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_order/uc_order.module \uc_order_delete_confirm_form()
- 6.2 uc_order/uc_order.admin.inc \uc_order_delete_confirm_form()
Confirmation form to delete an order.
See also
uc_order_delete_confirm_form_submit()
1 string reference to 'uc_order_delete_confirm_form'
- uc_order_menu in uc_order/
uc_order.module - Implements hook_menu().
File
- uc_order/
uc_order.admin.inc, line 1318 - Order administration menu items.
Code
function uc_order_delete_confirm_form($form, &$form_state, $order) {
if (!uc_order_can_delete($order)) {
drupal_set_message(t('It is not possible to delete order @id.', array(
'@id' => $order->order_id,
)));
drupal_goto('admin/store/orders');
}
$form['order_id'] = array(
'#type' => 'value',
'#value' => $order->order_id,
);
return confirm_form($form, t('Are you sure you want to delete order @order_id?', array(
'@order_id' => $order->order_id,
)), 'admin/store/orders', NULL, t('Delete'));
}