You are here

function theme_languageicons_place in Language Icons 6

Same name and namespace in other branches
  1. 6.2 languageicons.module \theme_languageicons_place()
  2. 7 languageicons.module \theme_languageicons_place()

Theme language icon and text.

1 theme call to theme_languageicons_place()
languageicons_link_add in ./languageicons.module
Add language icon to link.

File

./languageicons.module, line 137
Icons for language links.

Code

function theme_languageicons_place($text, $icon, $separator = ' ') {
  switch (variable_get('languageicons_placement', 'before')) {
    case 'after':
      return $text . $separator . $icon;
    case 'replace':
      return $icon;
    case 'before':
    default:
      return $icon . $separator . $text;
  }
}