You are here

function uc_shipping_package_delete_confirm in Ubercart 7.3

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

File

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

Code

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