Same name and namespace in other branches
  1. 4.7.x includes/theme.inc \theme_feed_icon()
  2. 5.x includes/theme.inc \theme_feed_icon()
  3. 7.x includes/theme.inc \theme_feed_icon()

Return code that emits an feed icon.

Parameters

$url: The URL of the feed.

$title: A descriptive title of the feed.

Related topics

3 theme calls to theme_feed_icon()
aggregator_page_sources in modules/aggregator/aggregator.pages.inc
Menu callback; displays all the feeds used by the aggregator.
drupal_add_feed in includes/common.inc
Add a feed URL for the current page.
template_preprocess_aggregator_feed_source in modules/aggregator/aggregator.pages.inc
Process variables for aggregator-feed-source.tpl.php.

File

includes/theme.inc, line 1611
The theme system, which controls the output of Drupal.

Code

function theme_feed_icon($url, $title) {
  if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), $title)) {
    return '<a href="' . check_url($url) . '" class="feed-icon">' . $image . '</a>';
  }
}