theme_feed_icon

Definition

theme_feed_icon($url)
includes/theme.inc, line 989

Description

Return code that emits an feed icon.

Related topics

Namesort iconDescription
Themeable functionsFunctions that display HTML, and which can be customized by themes.

Code

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

Drupal is a registered trademark of Dries Buytaert.