function views_plugin_display::pre_execute in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 plugins/views_plugin_display.inc \views_plugin_display::pre_execute()
- 7.3 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 - Contains the base display plugin.
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();
}
}