diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-02-10 19:30:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-02-10 19:30:08 +0000 |
commit | 08e7c8b3a708685ca9c5a9d780408a87c0ff9444 (patch) | |
tree | 1c8dbf7fb545fea2aba55d734e141727ed1431a7 /modules/node/node.module | |
parent | 16993da34f08f4bd826b996dcaf523e940ecd334 (diff) | |
download | brdo-08e7c8b3a708685ca9c5a9d780408a87c0ff9444.tar.gz brdo-08e7c8b3a708685ca9c5a9d780408a87c0ff9444.tar.bz2 |
- Patch #16246 by Moshe: "Here is a patch for node.module since thta hunk failed last time. Note that I've removed the 'delete' link since it doesn't work and is mostly obsolete with the 'mass delete' feature. I've also added smart destination andling to the 'url alias delete' feature."
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index b23d071a5..a17b5eb3a 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -924,14 +924,14 @@ function node_admin_nodes() { // Overview table: $header = array(NULL, t('Title'), t('Type'), t('Author'), t('Status'), array('data' => t('Operations'), 'colspan' => '2')); + $destination = drupal_get_destination(); while ($node = db_fetch_object($result)) { $rows[] = array(form_checkbox(NULL, 'nodes]['. $node->nid, 1, 0), l($node->title, 'node/'. $node->nid) .' '. theme('mark', node_mark($node->nid, $node->changed)), node_invoke($node, 'node_name'), format_name($node), ($node->status ? t('published') : t('not published')), - l(t('edit'), 'node/'. $node->nid .'/edit'), - l(t('delete'), 'admin/node/delete/'. $node->nid)); + l(t('edit'), 'node/'. $node->nid .'/edit', array(), $destination)); } if ($pager = theme('pager', NULL, 50, 0)) { |