/** * 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. */ public function preExecute() { $this->view->setAjaxEnabled($this->ajaxEnabled()); if ($this->isMoreEnabled() && !$this->useMoreAlways()) { $this->view->get_total_rows = TRUE; } $this->view->initHandlers(); if ($this->usesExposed()) { $exposed_form = $this->getPlugin('exposed_form'); $exposed_form->preExecute(); } foreach ($this->extender as $extender) { $extender->preExecute(); } $this->view->setShowAdminLinks($this->getOption('show_admin_links')); }