function rules_loop

Creates a loop.

Parameters

array $settings: The loop settings, containing 'list:select': The data selector for the list to loop over. 'item:var': Optionally a name for the list item variable. 'item:label': Optionally a label for the list item variable.

array $variables: An optional array as for rule().

Return value

RulesLoop

1 call to rules_loop()
RulesTestCase::testLoops in tests/rules.test
Tests using loops.

File

./rules.module, line 178

Code

function rules_loop($settings = array(), $variables = NULL) {
    return rules_plugin_factory('loop', $settings, $variables);
}