function uc_shipping_package_delete in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_shipping/uc_shipping.module \uc_shipping_package_delete()
- 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.module - Submit handler for uc_shipping_package_delete_confirm().
File
- shipping/
uc_shipping/ uc_shipping.module, line 1233 - 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_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,
)));
}