Commit 110da60f authored by Dries's avatar Dries

- Improved teaser handling.
parent b1be2a1f
......@@ -14,13 +14,14 @@ function forum_access($op, $node) {
}
}
function forum_save() {
function forum_save($op, $node) {
if ($op == "approve") {
return array("status" => 1);
}
if ($op == "create") {
return array("promote" => 0, "moderate" => 0, "status" => 1);
return array("promote" => 0, "moderate" => 0, "status" => 1, "teaser" => $node->body);
}
if ($op == "update") {
......@@ -28,7 +29,7 @@ function forum_save() {
}
if ($op == "update") {
return array("status" => 0);
return array("status" => 0, "teaser" => $node->body);
}
}
......
......@@ -14,13 +14,14 @@ function forum_access($op, $node) {
}
}
function forum_save() {
function forum_save($op, $node) {
if ($op == "approve") {
return array("status" => 1);
}
if ($op == "create") {
return array("promote" => 0, "moderate" => 0, "status" => 1);
return array("promote" => 0, "moderate" => 0, "status" => 1, "teaser" => $node->body);
}
if ($op == "update") {
......@@ -28,7 +29,7 @@ function forum_save() {
}
if ($op == "update") {
return array("status" => 0);
return array("status" => 0, "teaser" => $node->body);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment