function countries_update_7206 in Countries 8
Sets the language column.
We have to guess the best language for this as the value may not match the current sites default language. Also earlier imports would have been tanslated the names to the language used during installation.
File
- ./
countries.install, line 303 - Install file for Countries module.
Code
function countries_update_7206() {
$t = get_t();
$language = language_default();
db_update('countries_country')
->fields(array(
'language' => $language->language,
))
->execute();
drupal_set_message($t('Countries database language has been updated to match the sites default language %name.', array(
'%name' => $language->name,
)));
}