You are here

function theme_opml_icon in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \theme_opml_icon()
  2. 5.2 og.module \theme_opml_icon()
  3. 5.3 og.module \theme_opml_icon()
  4. 5.7 og.module \theme_opml_icon()
  5. 6.2 og.module \theme_opml_icon()
  6. 6 og.module \theme_opml_icon()

Return code that emits an XML icon. TODO: this belongs in theme.inc

File

./og.module, line 2484

Code

function theme_opml_icon($url) {
  if ($image = theme('image', drupal_get_path('module', 'og') . '/opml.gif', t('OPML file'), t('OPML file'))) {
    return '<a href="' . check_url($url) . '" class="opml-icon">' . $image . '</a>';
  }
}