From a2e6910902bfb1263e1b6363e2c29ede68f89918 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 3 Nov 2001 18:38:30 +0000 Subject: - Made the node forms support "help texts": it is not possible to configure Drupal to display submission guidelines, or any other kind of explanation such as "NO TEST POSTS", for example. - Added node versioning: it is possible to create revisions, to view old revisions and to roll-back to older revisions. You'll need to apply a SQL update. I'm going to work on the book module now, so I might be changing a few things to enable collaborative, moderated revisions - but feel free to send some first feedback, if you like. - Added some configuration options which can be used to set the minimum number of words a blog/story should consist of. Hopefully this will be usefull to stop the (almost empty) test blogs. - Various improvements: + Fine-tuned new node permission system. + Fine-tuned the functions in node.inc. + Fine-tuned some forms. + XHTML-ified some code. --- modules/book.module | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index 3b88c3376..03a239ae2 100644 --- a/modules/book.module +++ b/modules/book.module @@ -10,10 +10,9 @@ function book_node($field) { } function book_access($op, $node) { - global $user; if ($op == "view") { - return $node->nid && $node->status && !$node->moderate; + return ($node->nid && $node->status && !$node->moderate); } if ($op == "create") { @@ -24,10 +23,6 @@ function book_access($op, $node) { return 1; } - if ($op == "delete") { - return user_access("adminster nodes"); - } - } function book_link($type) { @@ -155,7 +150,7 @@ function book_toc($parent = "", $indent = "", $toc = array()) { return $toc; } -function book_form($node, $error) { +function book_form($node, $help, $error) { global $user; $output .= form_select(t("Parent"), "parent", $node->parent, book_toc(), t("The parent subject or category the page belongs in.")); -- cgit v1.2.3