From ecfa5477e72cac640dea51f0a54eece486c9bf9d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 13 Aug 2009 11:43:34 +0000 Subject: - Patch #547290 by David_Rothstein: corrected behavior of new forum topics, and properly delete an unused variable upon uninstallation. --- modules/forum/forum.install | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/forum/forum.install') 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'); } /** -- cgit v1.2.3