You are here

function views_plugin_display_feed::preview in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 plugins/views_plugin_display_feed.inc \views_plugin_display_feed::preview()
  2. 7.3 plugins/views_plugin_display_feed.inc \views_plugin_display_feed::preview()

Fully render the display for the purposes of a live preview or some other AJAXy reason.

Overrides views_plugin_display::preview

File

plugins/views_plugin_display_feed.inc, line 31
Contains the feed display plugin.

Class

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

Code

function preview() {
  if (!empty($this->view->live_preview)) {
    return '<pre>' . check_plain($this->view
      ->render()) . '</pre>';
  }
  return $this->view
    ->render();
}