diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-12-08 13:11:33 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-12-08 13:11:33 +0000 |
commit | 7a972daeab5a9a4aa2253ef10acc8a2b5c754cab (patch) | |
tree | 890008a8ece29aa54c8096ab7531c0d90dd2bb01 /modules/blog | |
parent | 6f4d9d56d5ee8bfd31c4453bbbe1d6379b611353 (diff) | |
download | brdo-7a972daeab5a9a4aa2253ef10acc8a2b5c754cab.tar.gz brdo-7a972daeab5a9a4aa2253ef10acc8a2b5c754cab.tar.bz2 |
- 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.
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/blog.module | 5 |
1 files changed, 3 insertions, 2 deletions
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")) { /* |