function rules_execute_or in Rules 6
Execution handler for the OR element Evaluates to TRUE if at least one children evaluate to TRUE..
1 string reference to 'rules_execute_or'
- rules_elements in rules/
rules.module - Implementation of hook_elements() Defines default values for all available properties of rules's element types
File
- rules/
rules.module, line 427 - Rules engine module
Code
function rules_execute_or(&$elements, &$state) {
foreach (element_children($elements) as $key) {
$result = rules_evaluate_elements($elements[$key], $state);
if ($result) {
return TRUE;
}
}
return FALSE;
}