Commit 00ee7f74 authored by Dries's avatar Dries

parent c79eb8c9
......@@ -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)) {
......
......@@ -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[] = "<a href=\"$referer\">". t("return") ."</a>";
}
if ($node->nid && node_access("view", $node)) {
$links[] = l(t("view"), "node/view/$node->nid");
}
......
......@@ -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[] = "<a href=\"$referer\">". t("return") ."</a>";
}
if ($node->nid && node_access("view", $node)) {
$links[] = l(t("view"), "node/view/$node->nid");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment