function ViewsUiBaseViewsWizard::default_display_filters

1 call to ViewsUiBaseViewsWizard::default_display_filters()
ViewsUiBaseViewsWizard::build_display_options in plugins/views_wizard/views_ui_base_views_wizard.class.php
Build an array of display options for the view.

File

plugins/views_wizard/views_ui_base_views_wizard.class.php, line 667

Class

ViewsUiBaseViewsWizard
A very generic Views Wizard class - can be constructed for any base table.

Code

protected function default_display_filters($form, $form_state) {
    $filters = array();
    // Add any filters provided by the plugin.
    if (isset($this->plugin['filters'])) {
        foreach ($this->plugin['filters'] as $name => $info) {
            $filters[$name] = $info;
        }
    }
    // Add any filters specified by the user when filling out the wizard.
    $filters = array_merge($filters, $this->default_display_filters_user($form, $form_state));
    return $filters;
}