You are here

function theme_views_atom_feed_icon in Views Atom 7

Same name and namespace in other branches
  1. 6 theme/views_atom.theme.inc \theme_views_atom_feed_icon()

Theme function for feed icon.

File

./views_atom.theme.inc, line 165

Code

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

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