function theme_opml_icon in Organic groups 6.2
Same name and namespace in other branches
- 5.8 og.module \theme_opml_icon()
- 5 og.module \theme_opml_icon()
- 5.2 og.module \theme_opml_icon()
- 5.3 og.module \theme_opml_icon()
- 5.7 og.module \theme_opml_icon()
- 6 og.module \theme_opml_icon()
Return code that emits an XML icon.
@todo 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 - Implementation of hook_views_pre_view().
File
- ./
og.module, line 2601 - Code for the Organic Groups module.
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>';
}
}