diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-13 11:43:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-13 11:43:34 +0000 |
commit | ecfa5477e72cac640dea51f0a54eece486c9bf9d (patch) | |
tree | 7a9a04a4baa607568cabc0c3dca02a3858ac87a9 /modules | |
parent | 14f98f2b7e9ff1eff6464c1149c19a48f89cc670 (diff) | |
download | brdo-ecfa5477e72cac640dea51f0a54eece486c9bf9d.tar.gz brdo-ecfa5477e72cac640dea51f0a54eece486c9bf9d.tar.bz2 |
- Patch #547290 by David_Rothstein: corrected behavior of new forum topics, and properly delete an unused variable upon uninstallation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/forum/forum.install | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/forum/forum.install b/modules/forum/forum.install index ddbe719fd..3b8702231 100644 --- a/modules/forum/forum.install +++ b/modules/forum/forum.install @@ -17,6 +17,9 @@ function forum_install() { ->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')); } function forum_enable() { @@ -66,6 +69,7 @@ function forum_uninstall() { variable_del('forum_order'); variable_del('forum_block_num_active'); variable_del('forum_block_num_new'); + variable_del('node_options_forum'); } /** |