function locale_install in Drupal 6
Same name and namespace in other branches
- 8 core/modules/locale/locale.install \locale_install()
- 5 modules/locale/locale.install \locale_install()
- 7 modules/locale/locale.install \locale_install()
- 9 core/modules/locale/locale.install \locale_install()
- 10 core/modules/locale/locale.install \locale_install()
Implementation of hook_install().
File
- modules/
locale/ locale.install, line 6
Code
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', '')");
}