function RulesLoop::__construct
Overrides RulesActionContainer::__construct
File
-
includes/
rules.plugins.inc, line 666
Class
- RulesLoop
- A loop element.
Code
public function __construct($settings = array(), $variables = NULL) {
$this->setUp();
$this->settings = (array) $settings + array(
'item:var' => 'list_item',
'item:label' => t('Current list item'),
);
if (!empty($variables)) {
$this->info['variables'] = $variables;
}
}