summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-09 15:15:10 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-09 15:15:10 +0000
commitbf810154f6f1ccde131bf5435a3403cce0242972 (patch)
tree2fe6db8d4f589eb63104dd4920b136258e94bebd /modules/book.module
parent6c69a8bfe6cefc795d13ef55713775565b966ba8 (diff)
downloadbrdo-bf810154f6f1ccde131bf5435a3403cce0242972.tar.gz
brdo-bf810154f6f1ccde131bf5435a3403cce0242972.tar.bz2
- Added a "queue for moderation"-toggle to a node's admin form and
updated the node modules to support this.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/book.module b/modules/book.module
index 30d50d8d7..9c486fe6e 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -56,7 +56,12 @@ function book_save($op, $node) {
}
if ($op == "create") {
- return array("format", "moderate" => 1, "parent", "promote" => 0, "status" => 1, "weight");
+ if (user_access("adminster nodes")) {
+ return array("format", "parent", "weight");
+ }
+ else {
+ return array("format", "moderate" => 1, "parent", "promote" => 0, "status" => 1, "weight");
+ }
}
if ($op == "decline") {