Shouldnt the node_feed function use an alternate delivery callback?

$items['rss.xml'] = array(
    'title' => 'RSS feed',
    'page callback' => 'node_feed',
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
  );

Now the drupal_deliver_html_page is used, while in the node_feed function the rendering process is terminated early to print the xml. Using an xml delivery callback would allow the rendering process to complete. This would be consistent with the page rendering system and allow other modules to alter the rendering.

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.