You are here

function forum_install in Drupal 6

Same name and namespace in other branches
  1. 8 core/modules/forum/forum.install \forum_install()
  2. 5 modules/forum/forum.install \forum_install()
  3. 7 modules/forum/forum.install \forum_install()
  4. 9 core/modules/forum/forum.install \forum_install()

Implementation of hook_install().

File

modules/forum/forum.install, line 6

Code

function forum_install() {

  // Create tables.
  drupal_install_schema('forum');

  // Set the weight of the forum.module to 1 so it is loaded after the taxonomy.module.
  db_query("UPDATE {system} SET weight = 1 WHERE name = 'forum'");
}