function uc_shipping_package_delete_confirm in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_shipping/uc_shipping.admin.inc \uc_shipping_package_delete_confirm()
- 7.3 shipping/uc_shipping/uc_shipping.admin.inc \uc_shipping_package_delete_confirm()
Decide to unpackage products.
See also
uc_shipping_package_delete_confirm_submit
1 string reference to 'uc_shipping_package_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 559 - 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_package_delete_confirm($order_id, $package_id) {
$form = array();
$form['order_id'] = array(
'#type' => 'value',
'#value' => $order_id,
);
$form['package_id'] = array(
'#type' => 'value',
'#value' => $package_id,
);
$output = confirm_form($form, t('Are you sure you want to delete this package?'), 'admin/store/orders/' . $order_id . '/packages', t('The products it contains will be available for repackaging.'), t('Delete'), t('Cancel'));
return $output;
}