function views_plugin_row_node_view::init

3.x views_plugin_row_node_view.inc views_plugin_row_node_view::init(&$view, &$display, $options = NULL)
2.x views_plugin_row_node_view.inc views_plugin_row_node_view::init(&$view, &$display, $options = NULL)

Initialize the row plugin.

Overrides views_plugin_row::init

File

modules/node/views_plugin_row_node_view.inc, line 17
Contains the node view row style plugin.

Class

views_plugin_row_node_view
Plugin which performs a node_view on the resulting object.

Code

function init(&$view, &$display, $options = NULL) {
  parent::init($view, $display, $options);
  // Handle existing views with the deprecated 'teaser' option.
  if (isset($this->options['teaser'])) {
    $this->options['build_mode'] = $this->options['teaser'] ? 'teaser' : 'full';
  }
}