function domain_locale_lookup in Domain Locale 7
Same name and namespace in other branches
- 6 domain_locale.module \domain_locale_lookup()
Retrieves a list of languages enabled on given domain
Parameters
int $domain_id:
boolean $reset: Reset the locale_list() cache.
Return value
An langcode-indexed hash of language weights. Example: array('en' => array('weight' => '0'), 'fr' => array('weight' => '0'))).
6 calls to domain_locale_lookup()
- domain_locale_form in ./
domain_locale.admin.inc - A modified version of locale_languages_overview_form to manage domain language settings.
- domain_locale_form_alter in ./
domain_locale.module - Implements hook_form_alter().
- domain_locale_form_submit in ./
domain_locale.admin.inc - FormsAPI submit handler for domain language settings
- domain_locale_init in ./
domain_locale.module - Implements hook_init().
- domain_locale_language_list in ./
domain_locale.module - Filter a langcode-indexed hash of languages by domain availability.
File
- ./
domain_locale.module, line 417 - Provides domain specific language settings.
Code
function domain_locale_lookup($domain_id, $reset = FALSE) {
$languages = domain_locale_list($reset);
$domain_locale = isset($languages[$domain_id]) ? $languages[$domain_id] : array();
return $domain_locale;
}