locale_install
modules/locale/locale.install, строка 6
- Версии
- 5 – 6
locale_install()
Реализация hook_install()
.
Код
<?php
function locale_install() {
// locales_source.source and locales_target.target are not used as binary
// fields; non-MySQL database servers need to ensure the field type is text
// and that LIKE produces a case-sensitive comparison.
// Create tables.
drupal_install_schema('locale');
db_query("INSERT INTO {languages} (language, name, native, direction, enabled, weight, javascript) VALUES ('en', 'English', 'English', '0', '1', '0', '')");
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии