Skip to content
Snippets Groups Projects
Commit e8ca5acd authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Fixed a typo.
parent e1f21d2b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -21,15 +21,15 @@ function forum_save($op, $node) { ...@@ -21,15 +21,15 @@ function forum_save($op, $node) {
} }
if ($op == "create") { if ($op == "create") {
return array("promote" => 0, "moderate" => 0, "status" => 1, "teaser" => $node->body); return array("teaser" => $node->body);
} }
if ($op == "update") { if ($op == "decline") {
return array(); return array("status" => 0);
} }
if ($op == "update") { if ($op == "update") {
return array("status" => 0, "teaser" => $node->body); return array("teaser" => $node->body);
} }
} }
......
...@@ -21,15 +21,15 @@ function forum_save($op, $node) { ...@@ -21,15 +21,15 @@ function forum_save($op, $node) {
} }
if ($op == "create") { if ($op == "create") {
return array("promote" => 0, "moderate" => 0, "status" => 1, "teaser" => $node->body); return array("teaser" => $node->body);
} }
if ($op == "update") { if ($op == "decline") {
return array(); return array("status" => 0);
} }
if ($op == "update") { if ($op == "update") {
return array("status" => 0, "teaser" => $node->body); return array("teaser" => $node->body);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment