You are here

function commerce_coupon_action_is_valid_coupon in Commerce Coupon 7

1 string reference to 'commerce_coupon_action_is_valid_coupon'
commerce_coupon_rules_action_info in ./commerce_coupon.rules.inc
Implements hook_rules_action_info().

File

./commerce_coupon.rules.inc, line 185
Coupon rules integration file.

Code

function commerce_coupon_action_is_valid_coupon($override = FALSE) {
  $validation_results =& drupal_static('commerce_coupon_action_validation_results');
  if (isset($validation_results) && $override == FALSE) {
    $validation_results = $validation_results && TRUE;
  }
  else {
    $validation_results[$commerce_coupon->coupon_id] = TRUE;
  }
}