You are here

function domain_locale_language_default in Domain Locale 6

Same name and namespace in other branches
  1. 7 domain_locale.module \domain_locale_language_default()

Retrieves default language for currently active domain

File

./domain_locale.module, line 141
domain_locale Domain Locale: manage languages Provides domain specific language settings

Code

function domain_locale_language_default() {
  global $_domain;
  $domain_language_default = domain_conf_variable_get($_domain['domain_id'], 'language_default');
  if (!isset($domain_language_default)) {
    $language_default = language_default();
  }
  else {

    //Domain Conf stores simple values (strings) so populate language object
    $language_default = domain_locale_language_load($domain_language_default);
  }
  return $language_default;
}