You are here

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

3 calls to ViewsUiBaseViewsWizard::block_display_options()
ViewsUiBaseViewsWizard::build_display_options in plugins/views_wizard/views_ui_base_views_wizard.class.php
Build an array of display options for the view.
ViewsUiCommentViewsWizard::block_display_options in plugins/views_wizard/views_ui_comment_views_wizard.class.php
ViewsUiNodeViewsWizard::block_display_options in plugins/views_wizard/views_ui_node_views_wizard.class.php
2 methods override ViewsUiBaseViewsWizard::block_display_options()
ViewsUiCommentViewsWizard::block_display_options in plugins/views_wizard/views_ui_comment_views_wizard.class.php
ViewsUiNodeViewsWizard::block_display_options in plugins/views_wizard/views_ui_node_views_wizard.class.php

File

plugins/views_wizard/views_ui_base_views_wizard.class.php, line 805
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 block_display_options($form, $form_state) {
  $display_options = array();
  $block = $form_state['values']['block'];
  $display_options['title'] = $block['title'];
  $display_options['style_plugin'] = $block['style']['style_plugin'];
  $display_options['row_plugin'] = isset($block['style']['row_plugin']) ? $block['style']['row_plugin'] : 'fields';
  $display_options['pager']['type'] = $block['pager'] ? 'full' : (empty($block['items_per_page']) ? 'none' : 'some');
  $display_options['pager']['options']['items_per_page'] = $block['items_per_page'];
  return $display_options;
}