protected function ViewsUiNodeViewsWizard::display_options_row in Views (for Drupal 7) 7.3
Set the row style and row style plugins to the display_options.
2 calls to ViewsUiNodeViewsWizard::display_options_row()
- ViewsUiNodeViewsWizard::block_display_options in plugins/
views_wizard/ views_ui_node_views_wizard.class.php - ViewsUiNodeViewsWizard::page_display_options in plugins/
views_wizard/ views_ui_node_views_wizard.class.php
File
- plugins/
views_wizard/ views_ui_node_views_wizard.class.php, line 113 - Definition of ViewsUiNodeViewsWizard.
Class
- ViewsUiNodeViewsWizard
- Tests creating node views with the wizard.
Code
protected function display_options_row(&$display_options, $row_plugin, $row_options) {
switch ($row_plugin) {
case 'full_posts':
$display_options['row_plugin'] = 'node';
$display_options['row_options']['build_mode'] = 'full';
$display_options['row_options']['links'] = !empty($row_options['links']);
$display_options['row_options']['comments'] = !empty($row_options['comments']);
break;
case 'teasers':
$display_options['row_plugin'] = 'node';
$display_options['row_options']['build_mode'] = 'teaser';
$display_options['row_options']['links'] = !empty($row_options['links']);
$display_options['row_options']['comments'] = !empty($row_options['comments']);
break;
case 'titles_linked':
$display_options['row_plugin'] = 'fields';
$display_options['field']['title']['link_to_node'] = 1;
break;
case 'titles':
$display_options['row_plugin'] = 'fields';
$display_options['field']['title']['link_to_node'] = 0;
break;
}
}