You are here

protected function ViewsUiBaseViewsWizard::default_display_sorts in Views (for Drupal 7) 7.3

1 call to ViewsUiBaseViewsWizard::default_display_sorts()
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 734
Provides the interface and base class for Views Wizard plugins.

Class

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

Code

protected function default_display_sorts($form, $form_state) {
  $sorts = array();

  // Add any sorts provided by the plugin.
  if (isset($this->plugin['sorts'])) {
    foreach ($this->plugin['sorts'] as $name => $info) {
      $sorts[$name] = $info;
    }
  }

  // Add any sorts specified by the user when filling out the wizard.
  $sorts = array_merge($sorts, $this
    ->default_display_sorts_user($form, $form_state));
  return $sorts;
}