public function ViewsRulesLoop::getViewIterator in Views Rules 7
Parameters
bool $reset: Whether to reset the iterator by retrieving a new one.
Return value
views_rules_iterator
3 calls to ViewsRulesLoop::getViewIterator()
- ViewsRulesLoop::evaluate in rules/
views_rules.plugin.inc - Evaluate, whereas by default new vars are visible in the parent's scope.
- ViewsRulesLoop::pluginParameterInfo in rules/
views_rules.plugin.inc - Returns info about parameters needed by the plugin.
- ViewsRulesLoop::rowVariables in rules/
views_rules.plugin.inc
File
- rules/
views_rules.plugin.inc, line 161 - Views Rules plugin implementations.
Class
- ViewsRulesLoop
- Loop plugin for using results from a view with Rules displays.
Code
public function getViewIterator($reset = FALSE) {
if ($view = $this
->getView($reset)) {
return $view->display_handler instanceof views_rules_iterator ? $view->display_handler : NULL;
}
return NULL;
}