You are here

function domain_locale_language_list in Domain Locale 7

Filter a langcode-indexed hash of languages by domain availability.

Parameters

array $language_names:

Return value

array

File

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

Code

function domain_locale_language_list($language_names) {
  global $_domain;
  $domain_languages = domain_locale_lookup($_domain['domain_id']);
  $ret = array_intersect_key($language_names, $domain_languages);
  return $ret;
}