You are here

public function views_oai_pmh_plugin_display::execute in Views OAI-PMH 7.3

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

The display page handler returns a normal view, but it also does a drupal_set_title for the page, and does a views_set_page_view on the view.

Overrides views_plugin_display_page::execute

File

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

Class

views_oai_pmh_plugin_display
The views_oai_pmh_plugin_display Class.

Code

public function execute() {

  // Let the world know that this is the page view we're using.
  views_set_page_view($this->view);

  // And now render the view.
  $output = $this->view
    ->render();
  drupal_add_http_header('Content-Type', 'text/xml');
  print $output;
}