diff --git a/modules/forum.module b/modules/forum.module index 536440132b75c9838daad27b68a93312f4ef7ceb..94f28766f51cb4137f54ffa4da68300d09ceb538 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -21,15 +21,15 @@ function forum_save($op, $node) { } if ($op == "create") { - return array("promote" => 0, "moderate" => 0, "status" => 1, "teaser" => $node->body); + return array("teaser" => $node->body); } - if ($op == "update") { - return array(); + if ($op == "decline") { + return array("status" => 0); } if ($op == "update") { - return array("status" => 0, "teaser" => $node->body); + return array("teaser" => $node->body); } } diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 536440132b75c9838daad27b68a93312f4ef7ceb..94f28766f51cb4137f54ffa4da68300d09ceb538 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -21,15 +21,15 @@ function forum_save($op, $node) { } if ($op == "create") { - return array("promote" => 0, "moderate" => 0, "status" => 1, "teaser" => $node->body); + return array("teaser" => $node->body); } - if ($op == "update") { - return array(); + if ($op == "decline") { + return array("status" => 0); } if ($op == "update") { - return array("status" => 0, "teaser" => $node->body); + return array("teaser" => $node->body); } }