locale_update_6001
modules/locale/locale.install, строка 122
- Версии
- 6
locale_update_6001()
Change locale column to language. The language column is added by
update_fix_d6_requirements()
in update.php to avoid a large number
of error messages from update.php. All we need to do here is copy
locale to language and then drop locale.
Связанные темы
Код
<?php
function locale_update_6001() {
$ret = array();
$ret[] = update_sql('UPDATE {locales_target} SET language = locale');
db_drop_field($ret, 'locales_target', 'locale');
return $ret;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии