function hook_uc_coupon_delete in Ubercart Discount Coupons 6
Same name and namespace in other branches
- 7.2 uc_coupon.api.php \hook_uc_coupon_delete()
Invoked just before a coupon is going to be deleted. Allows modules to clean up any additinal coupon data in their tables.
Parameters
$coupon: The coupon object which is about to be deleted.
1 function implements hook_uc_coupon_delete()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- uc_coupon_purchase_uc_coupon_delete in uc_coupon_purchase/
uc_coupon_purchase.module - Implementation of hook_uc_coupon_delete().
1 invocation of hook_uc_coupon_delete()
File
- ./
uc_coupon.api.php, line 50 - Ubercart Discount Coupon module api/hooks. Version 6.x-1.x
Code
function hook_uc_coupon_delete($coupon) {
// Delete extra usage information
db_query('DELETE FROM {extra_coupon_usage} WHERE cid = %d', $coupon->cid);
}