You are here

function theme_kml_feed_icon in KML 7

Same name and namespace in other branches
  1. 6.2 views/kml_views.theme.inc \theme_kml_feed_icon()

Theme function for kml feed icon.

File

views/kml_views.theme.inc, line 52
Theming functions for KML module views output.

Code

function theme_kml_feed_icon($url, $title, $icon) {

  // TODO: Should this theme kml_feed_icon be declared in hook_theme()?
  if ($image = theme('image', array(
    'path' => $icon,
    'width' => t('Download KML Feed'),
    'height' => $title,
  ))) {
    return '<a href="' . check_url($url) . '" class="feed-icon">' . $image . '</a>';
  }
}