public function views_plugin_display_feed::execute in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 plugins/views_plugin_display_feed.inc \views_plugin_display_feed::execute()
- 6.2 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 52 - 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 execute() {
$output = $this->view
->render();
if (!empty($this->view->build_info['denied'])) {
return MENU_ACCESS_DENIED;
}
if (empty($output)) {
return MENU_NOT_FOUND;
}
print $output;
}