You are here

function domain_locale_language_switch_links_alter in Domain Locale 7

Perform alterations on language switcher links.

A language switcher link may need to point to a different path or use a translated link text before going through l(), which will just handle the path aliases.

Parameters

$links: Nested array of links keyed by language code.

$type: The language type the links will switch.

$path: The current path.

File

./domain_locale.module, line 529
Provides domain specific language settings.

Code

function domain_locale_language_switch_links_alter(array &$links, $type, $path) {
  global $_domain;
  $languages = domain_locale_lookup($_domain['domain_id']);
  $links = array_intersect_key($links, $languages);
}