You are here

function payment_commerce_default_rules_configuration_alter in Payment for Drupal Commerce 7

Same name and namespace in other branches
  1. 7.2 payment_commerce.module \payment_commerce_default_rules_configuration_alter()

Implements hook_default_rules_configuration_alter().

File

./payment_commerce.module, line 393
Hook implementations and shared functions.

Code

function payment_commerce_default_rules_configuration_alter(array &$configs) {
  foreach ($configs as $name => $config) {
    if (preg_match('#^commerce_payment_payment_commerce_\\d+$#', $name)) {
      $config
        ->condition('payment_commerce_payment_method_validate');
    }
  }
}