function domain_locale_language_load in Domain Locale 6
Same name and namespace in other branches
- 7 domain_locale.module \domain_locale_language_load()
Helper function to retrieve a single language from site's enabled languages list. Added here since locale module does not expose this kind of functionality. Provides output similar to language_default() in bootstrap process.
Parameters
string $langcode:
1 call to domain_locale_language_load()
- domain_locale_language_default in ./
domain_locale.module - Retrieves default language for currently active domain
File
- ./
domain_locale.module, line 331 - domain_locale Domain Locale: manage languages Provides domain specific language settings
Code
function domain_locale_language_load($langcode) {
$lang = db_fetch_object(db_query("SELECT language, name, native, direction, enabled, plurals, formula, domain, prefix, javascript, weight FROM {languages} WHERE enabled = 1 AND language = '%s'", $langcode));
return $lang;
}