You are here

function rules_use_condition in Rules 6

Configures a condition for using in a rule

Parameters

$name The name of condition to create, as specified at hook_condition_info():

$params An optional array of properties to add, e.g. #settings:

$label An optional label for the condition:

2 calls to rules_use_condition()
rules_test_rules_defaults in rules_test/rules_test.rules_defaults.inc
Implementation of hook_rules_defaults.
_rules_admin_install_example_rules in rules_admin/rules_admin.install

File

rules/rules.module, line 649
Rules engine module

Code

function rules_use_condition($name, $params = array(), $label = NULL) {
  return _rules_element_set_label(rules_use_element('condition', array(
    '#name' => $name,
  ) + $params), $label);
}