You are here

function views_oai_pmh_plugin_display::init in Views OAI-PMH 6

Same name and namespace in other branches
  1. 6.2 plugins/views_oai_pmh_plugin_display.inc \views_oai_pmh_plugin_display::init()
  2. 7 plugins/views_oai_pmh_plugin_display.inc \views_oai_pmh_plugin_display::init()
  3. 7.2 plugins/views_oai_pmh_plugin_display.inc \views_oai_pmh_plugin_display::init()

File

plugins/views_oai_pmh_plugin_display.inc, line 21
Contains the OAI-PMH display plugin.

Class

views_oai_pmh_plugin_display
We are based on a feed display for compatibility.

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