function views_plugin_display::uses_exposed

Does this display uses exposed filters?

So the view will know whether or not to build them.

5 calls to views_plugin_display::uses_exposed()
views_plugin_display::pre_execute in plugins/views_plugin_display.inc
Set up any variables on the view prior to execution.
views_plugin_display::view_special_blocks in plugins/views_plugin_display.inc
Render any special blocks provided for this display.
views_plugin_display_attachment::uses_exposed in plugins/views_plugin_display_attachment.inc
Attachment displays only use exposed widgets if they are set to inherit the exposed filter settings of their parent display.
views_plugin_display_block::options_form in plugins/views_plugin_display_block.inc
Provide the default form for setting options.
views_plugin_display_block::uses_exposed in plugins/views_plugin_display_block.inc
Block views use exposed widgets only if AJAX is set.
2 methods override views_plugin_display::uses_exposed()
views_plugin_display_attachment::uses_exposed in plugins/views_plugin_display_attachment.inc
Attachment displays only use exposed widgets if they are set to inherit the exposed filter settings of their parent display.
views_plugin_display_block::uses_exposed in plugins/views_plugin_display_block.inc
Block views use exposed widgets only if AJAX is set.

File

plugins/views_plugin_display.inc, line 306

Class

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

Code

public function uses_exposed() {
    if (!isset($this->has_exposed)) {
        foreach ($this->handlers as $type => $value) {
            foreach ($this->view->{$type} as $handler) {
                if ($handler->can_expose() && $handler->is_exposed()) {
                    // One is all we need; if we find it, return true.
                    $this->has_exposed = TRUE;
                    return TRUE;
                }
            }
        }
        $pager = $this->get_plugin('pager');
        if ($pager && $pager->uses_exposed()) {
            $this->has_exposed = TRUE;
            return TRUE;
        }
        $this->has_exposed = FALSE;
    }
    return $this->has_exposed;
}