You are here

function languageicons_translation_link_alter in Language Icons 6

Same name and namespace in other branches
  1. 6.2 languageicons.module \languageicons_translation_link_alter()

Implementation of hook_translation_link_alter().

Adds language icons to normal translation links.

File

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

Code

function languageicons_translation_link_alter(&$links, $path) {
  if (variable_get('languageicons_show_block', 1)) {
    foreach (array_keys($links) as $langcode) {
      languageicons_link_add($links[$langcode]);
    }
  }
}