You are here

function domain_locale_language_default in Domain Locale 7

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

Retrieves default language for currently active domain

Return value

object Provides output similar to language_default() in bootstrap process.

1 call to domain_locale_language_default()
domain_locale_init in ./domain_locale.module
Implements hook_init().

File

./domain_locale.module, line 306
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');

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