You are here

public function ViewsRulesResultCollector::evaluateRow in Views Rules 7

Evaluates a view row in the loop.

Overrides ViewsRulesIterable::evaluateRow

File

rules/views_rules.action.inc, line 113
Action implementation.

Class

ViewsRulesResultCollector
Collector for view iterator results.

Code

public function evaluateRow(array $data) {

  // Collect data for each variable.
  foreach ($this->variables as $variable) {
    $this->data[$variable][] = isset($data[$variable]) ? $data[$variable] : NULL;
  }
}