From 00ee7f747b0920f2b8375b494930b19a25030a57 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 9 Nov 2003 17:25:11 +0000 Subject: [PATCH] - Removed the "return" link from the node submission confirmation page. --- includes/common.inc | 23 ----------------------- modules/node.module | 11 ----------- modules/node/node.module | 11 ----------- 3 files changed, 45 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index a0aa2d13ac5..9df7cc320d1 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -504,29 +504,6 @@ function drupal_goto($url) { exit(); } -/* -** Stores the referer in a persistent variable: -*/ - -function referer_save() { - if (!strstr(referer_uri(), request_uri())) { - $_SESSION["referer"] = referer_uri(); - } -} - -/* -** Restores the referer from a persistent variable: -*/ - -function referer_load() { - if (isset($_SESSION["referer"])) { - return $_SESSION["referer"]; - } - else { - return 0; - } -} - function valid_input_data($data) { if (is_array($data) || is_object($data)) { diff --git a/modules/node.module b/modules/node.module index 698e56ce6a1..847d83682e2 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1080,13 +1080,6 @@ function node_validate($node, &$error) { function node_form($edit, $error = NULL) { - /* - ** 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: */ @@ -1413,10 +1406,6 @@ function node_submit($node) { ** useful links as where to go next. */ - if ($referer = referer_load()) { - $links[] = "". t("return") .""; - } - if ($node->nid && node_access("view", $node)) { $links[] = l(t("view"), "node/view/$node->nid"); } diff --git a/modules/node/node.module b/modules/node/node.module index 698e56ce6a1..847d83682e2 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1080,13 +1080,6 @@ function node_validate($node, &$error) { function node_form($edit, $error = NULL) { - /* - ** 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: */ @@ -1413,10 +1406,6 @@ function node_submit($node) { ** useful links as where to go next. */ - if ($referer = referer_load()) { - $links[] = "". t("return") .""; - } - if ($node->nid && node_access("view", $node)) { $links[] = l(t("view"), "node/view/$node->nid"); }