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

Return code that emits an feed icon.

Related topics

2 theme calls to theme_feed_icon()
drupal_add_feed in includes/common.inc
Add a feed URL for the current page.
theme_aggregator_feed in modules/aggregator/aggregator.module
Format a news feed.

File

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

Code

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