function uc_shipping_package_cancel_confirm in Ubercart 7.3
Same name and namespace in other branches
- 5 shipping/uc_shipping/uc_shipping.module \uc_shipping_package_cancel_confirm()
- 6.2 shipping/uc_shipping/uc_shipping.admin.inc \uc_shipping_package_cancel_confirm()
Confirms cancellation of a package's shipment.
See also
uc_shipping_package_cancel_confirm_submit()
1 string reference to 'uc_shipping_package_cancel_confirm'
- uc_shipping_menu in shipping/
uc_shipping/ uc_shipping.module - Implements hook_menu().
File
- shipping/
uc_shipping/ uc_shipping.admin.inc, line 425 - Shipping administration menu items.
Code
function uc_shipping_package_cancel_confirm($form, &$form_state, $order, $package) {
$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 cancel the shipment of this package?'), 'admin/store/orders/' . $order->order_id . '/packages', t('It will be available for reshipment.'), t('Cancel shipment'), t('Nevermind'));
return $output;
}