function commerce_coupon_module_implements_alter in Commerce Coupon 7.2
Implements hook_module_implements_alter().
File
- ./
commerce_coupon.module, line 1329 - Provides coupon functionality for Drupal Commerce.
Code
function commerce_coupon_module_implements_alter(&$implementations, $hook) {
if ($hook == 'commerce_cart_order_refresh') {
// Move our implementation to the end of the list. Its job is to clean up
// order-coupon references where the coupon's discount no longer exists on
// the order.
$group = $implementations['commerce_coupon'];
unset($implementations['commerce_coupon']);
$implementations['commerce_coupon'] = $group;
}
}