You are here

function theme_xml_icon in Drupal 6

Same name and namespace in other branches
  1. 4 includes/theme.inc \theme_xml_icon()
  2. 5 includes/theme.inc \theme_xml_icon()

Return code that emits an XML icon.

For most use cases, this function has been superseded by theme_feed_icon().

Parameters

$url: The URL of the feed.

See also

theme_feed_icon()

Related topics

File

includes/theme.inc, line 1597
The theme system, which controls the output of Drupal.

Code

function theme_xml_icon($url) {
  if ($image = theme('image', 'misc/xml.png', t('XML feed'), t('XML feed'))) {
    return '<a href="' . check_url($url) . '" class="xml-icon">' . $image . '</a>';
  }
}