You are here

public function views_plugin_display_feed::init in Views (for Drupal 7) 7.3

Overrides views_plugin_display::init

File

plugins/views_plugin_display_feed.inc, line 20
Definition of views_plugin_display_feed.

Class

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

Code

public 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;
  }
}