You are here

function i18n_install in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18n.install \i18n_install()
  2. 5 i18n.install \i18n_install()
  3. 5.2 i18n.install \i18n_install()
  4. 7 i18n.install \i18n_install()

Set language field in its own table Do not drop node.language now, just in case TO-DO: Drop old tables, fields

File

./i18n.install, line 43
Installation file for Internationalization (i18n) module.

Code

function i18n_install() {

  // Create database tables
  drupal_install_schema('i18n');

  // Set module weight for it to run after core modules
  db_query("UPDATE {system} SET weight = 10 WHERE name = 'i18n' AND type = 'module'");
}