You are here

function theme_opml_icon in Organic groups 6

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

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

1 theme call to theme_opml_icon()
og_views_views_pre_view in modules/og_views/og_views.module
An implementation of hook_views_pre_view().

File

./og.module, line 2475

Code

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