You are here

function theme_xml_icon in Drupal 5

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

Return code that emits an XML icon.

Related topics

1 theme call to theme_xml_icon()
aggregator_page_sources in modules/aggregator/aggregator.module
Menu callback; displays all the feeds used by the aggregator.

File

includes/theme.inc, line 985
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>';
  }
}