You are here

protected function ViewsRulesLoop::stateVariables in Views Rules 7

Returns available state variables for an element.

Returns info about variables available in the evaluation state for any children elements or if given for a special child element.

Parameters

$element: The element for which the available state variables should be returned. If NULL is given, the variables available before any children are invoked are returned. If set to TRUE, the variables available after evaluating all children will be returned.

Overrides RulesContainerPlugin::stateVariables

File

rules/views_rules.plugin.inc, line 114
Views Rules plugin implementations.

Class

ViewsRulesLoop
Loop plugin for using results from a view with Rules displays.

Code

protected function stateVariables($element = NULL) {
  $variables = parent::stateVariables($element);

  // Add row variables to state.
  $variables += $this
    ->rowVariables();
  return $variables;
}