function theme_xml_icon

6.x theme.inc theme_xml_icon($url)

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

drupal-6.x/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>';
  }
}