From d852a999dea8fc1570930f7d29c677dd2fbb89b6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 1 Dec 2001 15:20:48 +0000 Subject: Node and book updates: - Fixed a glitch in the book overview in the admin section. - When updating a book page through the admin section, no new revision is created unless explictely specified. - Improved the usability of the node and book pages a little. --- modules/node.module | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index 0b719a3b4..fc0743677 100644 --- a/modules/node.module +++ b/modules/node.module @@ -415,7 +415,6 @@ function node_admin() { break; case t("Submit"): print node_submit($edit); - print node_admin_nodes(); break; case t("Delete"): print node_delete($edit); @@ -543,6 +542,13 @@ function node_validate($node, &$error) { function node_form($edit) { + /* + ** Save the referer. We record where the user came from such that we + ** can redirect him after having completed the node forms. + */ + + referer_save(); + /* ** Validate the node: */ @@ -835,6 +841,10 @@ function node_submit($node) { $output = t("You are not authorized to create this node."); } } + + if ($referer = referer_load()) { + $output .= "

". t("return") ."

"; + } } else { $output = message_access(); -- cgit v1.2.3