You are here

public function ViewsRulesLoop::getView in Views Rules 7

Parameters

bool $reset: Whether to reset the iterator by retrieving a new one.

Return value

view

3 calls to ViewsRulesLoop::getView()
ViewsRulesLoop::getViewIterator in rules/views_rules.plugin.inc
ViewsRulesLoop::integrityCheck in rules/views_rules.plugin.inc
Makes sure the plugin is configured right.
ViewsRulesLoop::label in rules/views_rules.plugin.inc
Returns the label of the element.

File

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

Class

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

Code

public function getView($reset = FALSE) {
  if (!isset($this->view) || $reset) {
    $view = views_get_view($this->info['view_name'], $reset);
    if ($view && $view
      ->set_display($this->info['display_name'])) {
      $this->view = $view;
    }
  }
  return $this->view;
}