From fbec279e4c6d2227a8453863e9149ea8ada96c10 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 1 Feb 2005 19:45:58 +0000 Subject: - Patch #16246 by Moshe: added mechanism to direct the user back to the referring page after completing a form. (Moshe: the patch against node.module failed to apply.) --- modules/path/path.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index 43b2d0ec2..86a9bea07 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -264,8 +264,9 @@ function path_overview() { $sql .= tablesort_sql($header); $result = pager_query($sql, 50); + $destination = drupal_get_destination(); while ($data = db_fetch_object($result)) { - $rows[] = array($data->dst, $data->src, l(t('edit'), "admin/path/edit/$data->pid"), l(t('delete'), "admin/path/delete/$data->pid")); + $rows[] = array($data->dst, $data->src, l(t('edit'), "admin/path/edit/$data->pid", array(), $destination), l(t('delete'), "admin/path/delete/$data->pid")); } if ($pager = theme('pager', NULL, 50, 0, tablesort_pager())) { -- cgit v1.2.3