diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-11-03 18:38:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-11-03 18:38:30 +0000 |
commit | a2e6910902bfb1263e1b6363e2c29ede68f89918 (patch) | |
tree | baa89d2d8bcd814f73d5108466024bd13ea7159d /modules/book.module | |
parent | 4d8b485fad960ea6551111e58f8c59df053b4456 (diff) | |
download | brdo-a2e6910902bfb1263e1b6363e2c29ede68f89918.tar.gz brdo-a2e6910902bfb1263e1b6363e2c29ede68f89918.tar.bz2 |
- 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.
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 9 |
1 files changed, 2 insertions, 7 deletions
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.")); |