drupal_add_feed
- Versions
- 5 – 7
drupal_add_feed($url = NULL, $title = '')
Add a feed URL for the current page.
Parameters
$url A url for the feed.
$title The title of the feed.
Code
includes/common.inc, line 177
<?php
function drupal_add_feed($url = NULL, $title = '') {
static $stored_feed_links = array();
if (!is_null($url) && !isset($stored_feed_links[$url])) {
$stored_feed_links[$url] = theme('feed_icon', $url, $title);
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => $title,
'href' => $url));
}
return $stored_feed_links;
}
?>Login or register to post comments 