diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-12-01 15:20:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-12-01 15:20:48 +0000 |
commit | d852a999dea8fc1570930f7d29c677dd2fbb89b6 (patch) | |
tree | d8141554730cd1be58f0d7c6bc30bffc1e46889c /modules/node.module | |
parent | 5ecedf72cfa346269e5e172c968993825b464945 (diff) | |
download | brdo-d852a999dea8fc1570930f7d29c677dd2fbb89b6.tar.gz brdo-d852a999dea8fc1570930f7d29c677dd2fbb89b6.tar.bz2 |
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.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 12 |
1 files changed, 11 insertions, 1 deletions
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); @@ -544,6 +543,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 .= "<p><a href=\"$referer\">". t("return") ."</a></p>"; + } } else { $output = message_access(); |