1 views_ui_node_views_wizard.php | protected ViewsUiNodeViewsWizard::display_options_row(&$display_options, $row_plugin, $row_options) |
Set the row style and row style plugins to the display_options.
File
- core/
modules/ views_ui/ wizards/ views_ui_node_views_wizard.php, line 109 - 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']['title'] = !empty($row_options['title']);
$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']['title'] = !empty($row_options['title']);
$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;
}
}