function forum_install
forum_install()
Implements hook_install().
File
- modules/forum/forum.install, line 11
- Install, update, and uninstall functions for the Forum module.
Code
function forum_install() { // Set the weight of the forum.module to 1 so it is loaded after the taxonomy.module. db_update('system') ->fields(array('weight' => 1)) ->condition('name', 'forum') ->execute(); // Forum topics are published by default, but do not have any other default // options set (for example, they are not promoted to the front page). variable_set('node_options_forum', array('status')); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!forum!forum.install/function/forum_install/7.x