1 views_ui_base_views_wizard.php protected ViewsUiBaseViewsWizard::block_display_options($form, $form_state)

File

core/modules/views_ui/wizards/views_ui_base_views_wizard.php, line 815
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;
}