function views_plugin_display_feed::execute

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_display_feed.inc \views_plugin_display_feed::execute()

Feeds do not go through the normal page theming mechanism. Instead, they go through their own little theme function and then return NULL so that Drupal believes that the page has already rendered itself...which it has.

Overrides views_plugin_display_page::execute

File

plugins/views_plugin_display_feed.inc, line 23

Class

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

Code

function execute() {
    $output = $this->view
        ->render();
    if (empty($output)) {
        return drupal_not_found();
    }
    print $output;
}