You are here

function uc_shipping_package_cancel_confirm in Ubercart 5

Same name and namespace in other branches
  1. 6.2 shipping/uc_shipping/uc_shipping.admin.inc \uc_shipping_package_cancel_confirm()
  2. 7.3 shipping/uc_shipping/uc_shipping.admin.inc \uc_shipping_package_cancel_confirm()
1 string reference to 'uc_shipping_package_cancel_confirm'
uc_shipping_menu in shipping/uc_shipping/uc_shipping.module
Implementation of hook_shipping_menu().

File

shipping/uc_shipping/uc_shipping.module, line 527
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_cancel_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 cancel the shipment of this package?'), 'admin/store/orders/' . $order_id . '/packages', t('It will be available for reshipment.'), t('Cancel shipment'), t('Nevermind'));
  return $output;
}