You are here

function i18n_block_menu_alter in Internationalization 7

Implement hook_menu_alter().

Reorganize block tabs so that they make sense.

File

i18n_block/i18n_block.module, line 56
Internationalization (i18n) submodule: Multilingual meta-blocks

Code

function i18n_block_menu_alter(&$items) {

  // Give the configure tab a short name and make it display.
  $items['admin/structure/block/manage/%/%/configure']['weight'] = -100;
  $items['admin/structure/block/manage/%/%/configure']['title'] = 'Configure';
  $items['admin/structure/block/manage/%/%/configure']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;

  // Hide the delete tab. Not sure why this was even set a local task then
  // set to not show in any context...
  $items['admin/structure/block/manage/%/%/delete']['type'] = MENU_CALLBACK;
}