Skip to content

Instantly share code, notes, and snippets.

@micahw156
Created January 4, 2013 23:56
Show Gist options
  • Save micahw156/4458608 to your computer and use it in GitHub Desktop.
Save micahw156/4458608 to your computer and use it in GitHub Desktop.
Add node delete links to tabs and context menus in Drupal 7.
/**
* Implements hook_menu_alter().
*/
function mysite_menu_alter(&$items) {
$items['node/%node/delete']['type'] = MENU_LOCAL_TASK;
$items['node/%node/delete']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment