From db47bac35ec035388cfdab0a9fb27e97f8099742 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 5 Nov 2001 22:59:11 +0000 Subject: - 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 --- modules/book.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/book.module') 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: -- cgit v1.2.3