function locale_install

7.x locale.install locale_install()
6.x locale.install locale_install()

Implementation of hook_install().

File

drupal-6.x/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', '')");
}