From 7a972daeab5a9a4aa2253ef10acc8a2b5c754cab Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 8 Dec 2001 13:11:33 +0000 Subject: - node system: + made a small change in the node overview page in the admin section such that it lists both new and updated pages by default. + reworked the filter-mechanism: it is not 100% finished yet but it sure is taking shape. --- modules/blog/blog.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/blog/blog.module') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 7e7662a4f..850a268fe 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -9,6 +9,7 @@ function blog_conf_options() { } + function blog_node($field) { global $user; @@ -47,7 +48,7 @@ function blog_save($op, $node) { } if ($op == "create") { - return array("promote" => 0, "moderate" => 1, "status" => 1); + return array("body" => filter($node->body), "promote" => 0, "moderate" => 1, "status" => 1); } if ($op == "decline") { @@ -67,7 +68,7 @@ function blog_save($op, $node) { ** entries through the admin pages. */ - return array("promote" => 0, "moderate" => 1, "score" => 0, "votes" => 0, "users" => 0); + return array("body" => filter($node->body), "promote" => 0, "moderate" => 1, "score" => 0, "votes" => 0, "users" => 0); } else if (user_access("adminster nodes")) { /* -- cgit v1.2.3