function views_plugin_display::pre_execute

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_display.inc \views_plugin_display::pre_execute()

Set up any variables on the view prior to execution. These are separated from execute because they are extremely common and unlikely to be overridden on an individual display.

File

plugins/views_plugin_display.inc, line 2441

Class

views_plugin_display
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Code

function pre_execute() {
    $this->view
        ->set_use_ajax($this->use_ajax());
    if ($this->use_more() && !$this->use_more_always()) {
        $this->view->get_total_rows = TRUE;
    }
    $this->view
        ->init_handlers();
    if ($this->uses_exposed()) {
        $exposed_form = $this->get_plugin('exposed_form');
        $exposed_form->pre_execute();
    }
    foreach ($this->extender as $extender) {
        $extender->pre_execute();
    }
}