theme_feed_icon

includes/theme.inc, line 1536

Versions
4.7 – 5
theme_feed_icon($url)
6 – 7
theme_feed_icon($url, $title)

Return code that emits an feed icon.

Parameters

$url The url of the feed.

$title A descriptive title of the feed.

Related topics

Code

<?php
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>';
  }
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.