1 views_plugin_display_feed.inc views_plugin_display_feed::init(&$view, &$display, $options = NULL)

Overrides views_plugin_display::init

File

core/modules/views/plugins/views_plugin_display_feed.inc, line 16
Contains the feed display plugin.

Class

views_plugin_display_feed
The plugin that handles a feed, such as RSS or atom.

Code

function init(&$view, &$display, $options = NULL) {
  parent::init($view, $display, $options);

  // Set the default row style. Ideally this would be part of the option
  // definition, but in this case it's dependent on the view's base table,
  // which we don't know until init().
  $row_plugins = views_fetch_plugin_names('row', $this->get_style_type(), array($view->base_table));
  $default_row_plugin = key($row_plugins);
  if ($this->options['row_plugin'] == '') {
    $this->options['row_plugin'] = $default_row_plugin;
  }
}