You are here

function uc_shipping_package_cancel_confirm in Ubercart 6.2

Same name and namespace in other branches
  1. 5 shipping/uc_shipping/uc_shipping.module \uc_shipping_package_cancel_confirm()
  2. 7.3 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_shipping_menu().

File

shipping/uc_shipping/uc_shipping.admin.inc, line 359
Shipping administration menu items.

Code

function uc_shipping_package_cancel_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 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;
}