function 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 2852

Class

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

Code

public 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();
    }
    if ($this->get_option('hide_admin_links')) {
        $this->view->hide_admin_links = TRUE;
    }
}