theme_feed_icon

  1. drupal
    1. 4.7 theme.inc
    2. 5 theme.inc
    3. 6
    4. 7
Versions
4.7 – 5 theme_feed_icon($url)
6 theme_feed_icon($url, $title)
7 theme_feed_icon($variables)

Returns HTML for a feed icon.

Parameters

$variables An associative array containing:

  • url: An internal system path or a fully qualified external URL of the feed.
  • title: A descriptive title of the feed.

Related topics

Code

drupal/includes/theme.inc, line 1869

<?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 l($image, $variables['url'], array('html' => TRUE, 'attributes' => array('class' => array('feed-icon'), 'title' => $text)));
  }
}
?>