You are here

function domain_locale_list in Domain Locale 7

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

Retrieves an array of domains and languages enabled on those domains.

Return value

array A domain-ID keyed hash of languages

TODO this should probably use a drupal_static().

4 calls to domain_locale_list()
domain_locale_features_export_render in ./domain_locale.features.inc
Implements hook_features_export_render().
domain_locale_features_get_options in ./domain_locale.module
Sets domain export options consistently.
domain_locale_features_selection in ./domain_locale.module
Processes export data selections consistently.
domain_locale_lookup in ./domain_locale.module
Retrieves a list of languages enabled on given domain

File

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

Code

function domain_locale_list($reset = FALSE) {
  static $list;
  if (!isset($list) || $reset) {
    $list = _domain_locale_get_domains_languages();
  }
  return $list;
}