function uc_shipping_package_delete_confirm in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_shipping/uc_shipping.module \uc_shipping_package_delete_confirm()
- 7.3 shipping/uc_shipping/uc_shipping.admin.inc \uc_shipping_package_delete_confirm()
Decides 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 - Implements hook_shipping_menu().
File
- shipping/
uc_shipping/ uc_shipping.admin.inc, line 397 - Shipping administration menu items.
Code
function uc_shipping_package_delete_confirm($form_state, $order, $package) {
$form = array();
$form['order_id'] = array(
'#type' => 'value',
'#value' => $order->order_id,
);
$form['package_id'] = array(
'#type' => 'value',
'#value' => $package->package_id,
);
$output = confirm_form($form, t('Are you sure you want to delete this package?'), 'admin/store/orders/' . $order->order_id . '/packages', t('The products it contains will be available for repackaging.'), t('Delete'), t('Cancel'));
return $output;
}