function commerce_coupon_commerce_discount_delete in Commerce Coupon 7.2
Implements hook_commerce_discount_delete().
File
- ./
commerce_coupon.module, line 1754 - Provides coupon functionality for Drupal Commerce.
Code
function commerce_coupon_commerce_discount_delete($discount) {
// When we delete a coupon, remove the cached coupon count for that discount.
cache_clear_all('discount_coupon_count_' . $discount->discount_id, 'cache');
}