summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-05 22:59:11 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-05 22:59:11 +0000
commitdb47bac35ec035388cfdab0a9fb27e97f8099742 (patch)
treef1ae2de16fdaa0ab39199d61828076e9eeb9af45 /modules/book.module
parentf88cfaa2dd205846843068175931e68c582bb037 (diff)
downloadbrdo-db47bac35ec035388cfdab0a9fb27e97f8099742.tar.gz
brdo-db47bac35ec035388cfdab0a9fb27e97f8099742.tar.bz2
- node.module:
+ Changed node_form() to use good ol' tables instead of div/CSS-tags. + Revised the "revision API": I think we have both an easy and powerful API now that should make everyone happy. + Improved the usability of the rollback functionality a bit. + Removed the "view node" link from the "node overview" page in the admin section and added a "delete node" link instead. + Added a few missing translations; there might be missing more translations though. - book.module: + Made the book module use the "revision API" instead of having it poke and use the innards and underlying details of the revision system. - queue.module: + Made the queue module use the improved revision number. - module.inc: + Applied Moshe's patch: added more arguments to module_invoke() - mail-to-sql.pl: + Added support for more header fields and for folded fields Notes: - no database updates required
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/book.module b/modules/book.module
index 320f1f88f..129857251 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -142,7 +142,7 @@ function book_view($node, $main = 0) {
*/
if ($node->moderate && $mod != "queue") {
- $node = $node->revisions[sizeof($node->revisions) - 1]["node"];
+ $node = node_revision_load($node, end(node_revision_list($node)));
}
/*
@@ -233,7 +233,7 @@ function book_tree($parent = "", $depth = 0) {
// take the most recent approved revision:
if ($node->moderate) {
- $node = $node->revisions[sizeof($node->revisions) - 1]["node"];
+ $node = node_revision_load($node, end(node_revision_list($node)));
}
// output the content:
@@ -260,7 +260,7 @@ function book_render() {
// take the most recent approved revision:
if ($node->moderate) {
- $node = $node->revisions[sizeof($node->revisions) - 1]["node"];
+ $node = node_revision_load($node, end(node_revision_list($node)));
}
// output the content:
@@ -300,7 +300,7 @@ function book_export_html($id = "", $depth = 1) {
// take the most recent approved revision:
if ($node->moderate) {
- $node = $node->revisions[sizeof($node->revisions) - 1]["node"];
+ $node = node_revision_load($node, end(node_revision_list($node)));
}
// output the content:
@@ -325,7 +325,7 @@ function book_export_html_recursive($parent = "", $depth = 1) {
// take the most recent approved revision:
if ($node->moderate) {
- $node = $node->revisions[sizeof($node->revisions) - 1]["node"];
+ $node = node_revision_load($node, end(node_revision_list($node)));
}
// output the content: