You are here

function _domain_locale_get_language_domains in Domain Locale 6

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

Helper function to retrieve domains that have a specific language enabled

Parameters

string $langcode language code:

Return value

array list of domains

1 call to _domain_locale_get_language_domains()
domain_locale_languages_delete_submit in ./domain_locale.module
Additional submit handler for locale_languages_overview_form Removes disabled languages from domain_locale table

File

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

Code

function _domain_locale_get_language_domains($langcode) {
  $sql = db_query("SELECT domain_id FROM {domain_locale} WHERE language = '%s' ORDER BY domain_id", $langcode);
  $domains = array();
  while ($row = db_fetch_array($sql)) {
    array_push($domains, $row['domain_id']);
  }
  return $domains;
}