You are here

function theme_languageicons_place in Language Icons 7

Same name and namespace in other branches
  1. 6.2 languageicons.module \theme_languageicons_place()
  2. 6 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 136
Icons for language links.

Code

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