drupal_add_feed($url = NULL, $title = '')
drupal-5/includes/common.inc, line 161
Add a feed URL for the current page.
$url The url for the feed
$title The title of the feed
<?php
function drupal_add_feed($url = NULL, $title = '') {
static $stored_feed_links = array();
if (!is_null($url)) {
$stored_feed_links[$url] = theme('feed_icon', $url);
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => $title,
'href' => $url));
}
return $stored_feed_links;
}
?>