You are here

function domain_locale_delete_domain_language in Domain Locale 7

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

Remove a single language setting from {domain_locale}

Parameters

int $domain_id:

string $langcode:

1 call to domain_locale_delete_domain_language()
domain_locale_languages_delete_submit in ./domain_locale.module
Additional submit handler for locale_languages_overview_form().

File

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

Code

function domain_locale_delete_domain_language($domain_id, $langcode) {
  db_delete('domain_locale')
    ->condition('domain_id', $domain_id)
    ->condition('language', $langcode)
    ->execute();
}