function uc_shipping_shipment_delete_confirm in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_shipping/uc_shipping.admin.inc \uc_shipping_shipment_delete_confirm()
- 7.3 shipping/uc_shipping/uc_shipping.admin.inc \uc_shipping_shipment_delete_confirm()
Decide to release packages to be put on another shipment.
See also
uc_shipping_shipment_delete_confirm_submit
1 string reference to 'uc_shipping_shipment_delete_confirm'
- uc_shipping_menu in shipping/
uc_shipping/ uc_shipping.module - Implementation of hook_shipping_menu().
File
- shipping/
uc_shipping/ uc_shipping.module, line 1099 - Organizes ordered products into packages and sets them up for shipment. Shipping method modules may add functionality to generate shipping labels and tracking numbers.
Code
function uc_shipping_shipment_delete_confirm($order_id, $sid) {
$form = array();
$form['order_id'] = array(
'#type' => 'value',
'#value' => $order_id,
);
$form['sid'] = array(
'#type' => 'value',
'#value' => $sid,
);
$output = confirm_form($form, t('Are you sure you want to delete this shipment?'), 'admin/store/orders/' . $order_id . '/shipments', t('The shipment will be canceled and the packages it contains will be available for reshipment.'), t('Delete'), t('Cancel'));
return $output;
}