summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-17 22:22:18 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-17 22:22:18 +0000
commitcc4d9fbe3fb832646bbac3c805938e01916ae225 (patch)
treed2eb5f4257596fe977e5d7b3b0b03614abb217d6 /modules/blog
parente596301b3977ae67a8884923e4d1f2580203219d (diff)
downloadbrdo-cc4d9fbe3fb832646bbac3c805938e01916ae225.tar.gz
brdo-cc4d9fbe3fb832646bbac3c805938e01916ae225.tar.bz2
Experimental change:
- Blog entries get queued in the moderation queue for promotion.
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/blog.module20
1 files changed, 18 insertions, 2 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 024661db0..9f345c1d7 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -40,13 +40,14 @@ function blog_access($op, $node) {
}
function blog_save($op, $node) {
+ global $user;
if ($op == "approve") {
return array("promote" => 1);
}
if ($op == "create") {
- return array("promote" => 0, "moderate" => 0, "status" => 1);
+ return array("promote" => 0, "moderate" => 1, "status" => 1);
}
if ($op == "decline") {
@@ -54,7 +55,22 @@ function blog_save($op, $node) {
}
if ($op == "update") {
- return array("promote");
+ if ($user->uid == $node->uid) {
+ /*
+ ** Updating your own blog entry will demote it (if promoted),
+ ** and will queue it in the moderation queue for promotion.
+ */
+
+ return array("promote" => 0, "moderate" => 1, "score" => 0, "votes" => 0, "users" => 0);
+ }
+ else {
+ /*
+ ** When an administrator updates someone else' blog entry, it
+ ** will not be changed unless explicitly specified.
+ */
+
+ return array();
+ }
}
}