class views_plugin_nd_node_view in Node displays 6
Plugin which performs a node_view on the resulting object based on our nd build modes.
Hierarchy
- class \views_plugin_nd_node_view extends \views_plugin_row
Expanded class hierarchy of views_plugin_nd_node_view
1 string reference to 'views_plugin_nd_node_view'
- nd_views_plugins in views/
nd.views.inc - Implementation of hook_views_plugins().
File
- views/
views_plugin_nd_node_view.inc, line 11 - Contains the nd view style plugin.
View source
class views_plugin_nd_node_view extends views_plugin_row {
function option_definition() {
$options = parent::option_definition();
$options['build_mode'] = array(
'default' => 'teaser',
);
$options['show_links'] = array(
'default' => FALSE,
);
return $options;
}
function options_form(&$form, &$form_state) {
$build_mode_options = array();
$build_modes = nd_get_build_modes();
foreach ($build_modes as $build_mode => $value) {
$build_mode_options[$build_mode] = $value['title'];
}
$form['build_mode'] = array(
'#type' => 'radios',
'#title' => t('Select the build mode'),
'#default_value' => $this->options['build_mode'],
'#options' => $build_mode_options,
);
$form['show_links'] = array(
'#type' => 'checkbox',
'#title' => t('Show links'),
'#default_value' => $this->options['show_links'],
);
}
}