diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-22 23:28:48 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-05-22 23:28:48 +0000 |
commit | 5f6d733b70cdc374053e1e415d225008e04bbef4 (patch) | |
tree | d220871eb4032ce56a15e745d94eb6fa62a081e5 /modules/forum.module | |
parent | d62d65ae7ec31ea8e4e3435f06015673e45e9e2b (diff) | |
download | brdo-5f6d733b70cdc374053e1e415d225008e04bbef4.tar.gz brdo-5f6d733b70cdc374053e1e415d225008e04bbef4.tar.bz2 |
- node security fixes.
- fixing the UI to represent what actually happens when you are an admin.
Diffstat (limited to 'modules/forum.module')
-rw-r--r-- | modules/forum.module | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/forum.module b/modules/forum.module index e5b487f09..69a26b289 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -55,6 +55,12 @@ function forum_view($node) { function forum_form(&$node, &$help, &$error) { + if (!$node->status) { + $node->status = 1; + $node->moderate = 1; + $node->comment = 2; + } + if (function_exists("taxonomy_node_form")) { $output = implode("", taxonomy_node_form("forum", $node)); } |