function domain_locale_delete_domain_language in Domain Locale 6
Same name and namespace in other branches
- 7 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 Removes disabled languages from domain_locale table
File
- ./
domain_locale.module, line 185 - domain_locale Domain Locale: manage languages Provides domain specific language settings
Code
function domain_locale_delete_domain_language($domain_id, $langcode) {
db_query("DELETE FROM {domain_locale} WHERE domain_id = %d AND language = '%s'", $domain_id, $langcode);
}