You are here

function menu_block_menu_alter in Menu Block 7.3

Same name and namespace in other branches
  1. 7.2 menu_block.module \menu_block_menu_alter()

Implements hook_menu_alter().

File

./menu_block.module, line 91
Provides configurable blocks of menu items.

Code

function menu_block_menu_alter(&$items) {

  // Fake the necessary menu attributes necessary for a contextual link.
  $items['admin/content/book/%node']['title'] = 'Edit book outline';
  $items['admin/content/book/%node']['type'] = MENU_LOCAL_TASK;
  $items['admin/content/book/%node']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;
  $items['admin/content/book/%node']['tab_root'] = 'admin/content/book';
}