You are here

function uc_shipping_package_delete in Ubercart 6.2

Same name and namespace in other branches
  1. 5 shipping/uc_shipping/uc_shipping.module \uc_shipping_package_delete()
  2. 7.3 shipping/uc_shipping/uc_shipping.module \uc_shipping_package_delete()

Delete a package.

1 call to uc_shipping_package_delete()
uc_shipping_package_delete_confirm_submit in shipping/uc_shipping/uc_shipping.admin.inc
Submit handler for uc_shipping_package_delete_confirm().

File

shipping/uc_shipping/uc_shipping.module, line 496

Code

function uc_shipping_package_delete($package_id) {
  db_query("DELETE FROM {uc_packages} WHERE package_id = %d", $package_id);
  db_query("DELETE FROM {uc_packaged_products} WHERE package_id = %d", $package_id);
  drupal_set_message(t('Package @id has been deleted.', array(
    '@id' => $package_id,
  )));
}