function theme_feed_icon
7.x theme.inc | theme_feed_icon( |
6.x theme.inc | 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
4 theme calls to theme_feed_icon()
- aggregator_page_sources in drupal-6.x/
modules/ aggregator/ aggregator.pages.inc - Menu callback; displays all the feeds used by the aggregator.
- drupal_add_feed in drupal-6.x/
includes/ common.inc - Add a feed URL for the current page.
- node_block in drupal-6.x/
modules/ node/ node.module - Implementation of hook_block().
- template_preprocess_aggregator_feed_source in drupal-6.x/
modules/ aggregator/ aggregator.pages.inc - Process variables for aggregator-feed-source.tpl.php.
File
- drupal-6.x/
includes/ theme.inc, line 1611 - The theme system, which controls the output of Drupal.
Code
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>';
}
}