You are here

function theme_feed_icon in Drupal 5

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

Return code that emits an feed icon.

Related topics

3 theme calls to theme_feed_icon()
drupal_add_feed in includes/common.inc
Add a feed URL for the current page.
node_block in modules/node/node.module
Implementation of hook_block().
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>';
  }
}