You are here

function hook_default_rules_configuration_alter in Rules 7.2

Alter default rules configurations.

The implementation should be placed into the file MODULENAME.rules_defaults.inc, which gets automatically included when the hook is invoked.

Parameters

$configs: The default configurations of all modules as returned from hook_default_rules_configuration().

See also

hook_default_rules_configuration()

Related topics

File

./rules.api.php, line 895
Documentation for hooks provided by the Rules API.

Code

function hook_default_rules_configuration_alter(&$configs) {

  // Add custom condition.
  $configs['foo']
    ->condition('bar');
}