Quick and painless delete tab on nodes

If the goal is just to add a Delete tab next to the default View | Edit tabs on a node in Drupal 7, you can use this quickie:

<?php

function example_menu_alter(&$items) {
 
$items['node/%node/delete']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;
}

?>

 

Joshua Walker