summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-02-01 19:45:58 +0000
committerDries Buytaert <dries@buytaert.net>2005-02-01 19:45:58 +0000
commitfbec279e4c6d2227a8453863e9149ea8ada96c10 (patch)
tree7d6643a20051069121b98e5efd053ede6549b05b /modules/path
parent7ccc5a6b1b4541a11b858e09cbd8244909d89c92 (diff)
downloadbrdo-fbec279e4c6d2227a8453863e9149ea8ada96c10.tar.gz
brdo-fbec279e4c6d2227a8453863e9149ea8ada96c10.tar.bz2
- 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.)
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.module3
1 files changed, 2 insertions, 1 deletions
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())) {