theme_feed_icon

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

Return code that emits an feed icon.

Parameters

$variables An associative array containing:

  • url: The url of the feed.
  • title: A descriptive title of the feed.

Related topics

Code

includes/theme.inc, line 1899

<?php
function theme_feed_icon($variables) {
  $text = t('Subscribe to @feed-title', array('@feed-title' => $variables['title']));
  if ($image = theme('image', array('path' => 'misc/feed.png', 'alt' => $text))) {
    return '<a href="' . check_url($variables['url']) . '" title="' . $text . '" class="feed-icon">' . $image . '</a>';
  }
}
?>
Login or register to post comments
 
 

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.