You are here

public function RulesLoop::__construct in Rules 7.2

Overrides RulesActionContainer::__construct

File

includes/rules.plugins.inc, line 666
Contains plugin info and implementations not needed for rule evaluation.

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;
  }
}