Index: modules/node/node.pages.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.pages.inc,v
retrieving revision 1.55
diff -u -r1.55 node.pages.inc
--- modules/node/node.pages.inc	13 Feb 2009 02:22:09 -0000	1.55
+++ modules/node/node.pages.inc	14 Mar 2009 00:08:31 -0000
@@ -8,7 +8,7 @@
 
 
 /**
- * Menu callback; presents the node editing form, or redirects to delete confirmation.
+ * Menu callback; presents the node editing form.
  */
 function node_page_edit($node) {
   $type_name = node_get_types('name', $node);
@@ -249,14 +249,6 @@
     '#weight' => 10,
     '#submit' => array('node_form_build_preview'),
   );
-  if (!empty($node->nid) && node_access('delete', $node)) {
-    $form['buttons']['delete'] = array(
-      '#type' => 'submit',
-      '#value' => t('Delete'),
-      '#weight' => 15,
-      '#submit' => array('node_form_delete_submit'),
-    );
-  }
   $form['#validate'][] = 'node_form_validate';
   $form['#theme'] = array($node->type . '_node_form', 'node_form');
 
@@ -308,20 +300,6 @@
   return $form;
 }
 
-/**
- * Button submit function: handle the 'Delete' button on the node form.
- */
-function node_form_delete_submit($form, &$form_state) {
-  $destination = '';
-  if (isset($_REQUEST['destination'])) {
-    $destination = drupal_get_destination();
-    unset($_REQUEST['destination']);
-  }
-  $node = $form['#node'];
-  $form_state['redirect'] = array('node/' . $node->nid . '/delete', $destination);
-}
-
-
 function node_form_build_preview($form, &$form_state) {
   $node = node_form_submit_build_node($form, $form_state);
   $form_state['node_preview'] = node_preview($node);
@@ -489,9 +467,9 @@
   );
 
   return confirm_form($form,
-    t('Are you sure you want to delete %title?', array('%title' => $node->title)),
+    $node->title,
     isset($_GET['destination']) ? $_GET['destination'] : 'node/' . $node->nid,
-    t('This action cannot be undone.'),
+    t('Are you sure you want to delete this @type? This action cannot be undone.', array('@type' => node_get_types('name', $node))),
     t('Delete'),
     t('Cancel')
   );
@@ -512,8 +490,6 @@
  * Generate an overview table of older revisions of a node.
  */
 function node_revision_overview($node) {
-  drupal_set_title(t('Revisions for %title', array('%title' => $node->title)), PASS_THROUGH);
-
   $header = array(t('Revision'), array('data' => t('Operations'), 'colspan' => 2));
 
   $revisions = node_revision_list($node);
@@ -558,7 +534,14 @@
  */
 function node_revision_revert_confirm($form_state, $node_revision) {
   $form['#node_revision'] = $node_revision;
-  return confirm_form($form, t('Are you sure you want to revert to the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/' . $node_revision->nid . '/revisions', '', t('Revert'), t('Cancel'));
+  return confirm_form(
+    $form,
+    $node_revision->title,
+    'node/' . $node_revision->nid . '/revisions',
+    t('Are you sure you want to revert to the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))),
+    t('Revert'),
+    t('Cancel')
+  );
 }
 
 function node_revision_revert_confirm_submit($form, &$form_state) {
@@ -578,7 +561,14 @@
 
 function node_revision_delete_confirm($form_state, $node_revision) {
   $form['#node_revision'] = $node_revision;
-  return confirm_form($form, t('Are you sure you want to delete the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/' . $node_revision->nid . '/revisions', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
+  return confirm_form(
+    $form,
+    $node_revision->title,
+    'node/' . $node_revision->nid . '/revisions',
+    t('Are you sure you want to delete the revision from %revision-date? This action cannot be undone.', array('%revision-date' => format_date($node_revision->revision_timestamp))),
+    t('Delete'),
+    t('Cancel')
+  );
 }
 
 function node_revision_delete_confirm_submit($form, &$form_state) {
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.1024
diff -u -r1.1024 node.module
--- modules/node/node.module	13 Feb 2009 02:27:59 -0000	1.1024
+++ modules/node/node.module	14 Mar 2009 00:08:31 -0000
@@ -1800,15 +1800,15 @@
     'page arguments' => array('node_delete_confirm', 1),
     'access callback' => 'node_access',
     'access arguments' => array('delete', 1),
-    'weight' => 1,
-    'type' => MENU_CALLBACK);
+    'weight' => 2,
+    'type' => MENU_LOCAL_TASK);
   $items['node/%node/revisions'] = array(
     'title' => 'Revisions',
     'page callback' => 'node_revision_overview',
     'page arguments' => array(1),
     'access callback' => '_node_revision_access',
     'access arguments' => array(1),
-    'weight' => 2,
+    'weight' => 3,
     'type' => MENU_LOCAL_TASK,
   );
   $items['node/%node/revisions/%/view'] = array(
@@ -1946,7 +1946,7 @@
         $item->body = $content;
         unset($item->teaser);
       }
-    
+
       // Allow modules to modify the fully-built node.
       node_invoke_nodeapi($item, 'alter', $teaser, FALSE);
     }

