You are here

function i18n_block_menu in Internationalization 7

Implements hook_menu().

Add translate tab to blocks.

File

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

Code

function i18n_block_menu() {
  $items['admin/structure/block/manage/%/%/translate'] = array(
    'title' => 'Translate',
    'access callback' => 'i18n_block_translate_tab_access',
    'access arguments' => array(
      4,
      5,
    ),
    'page callback' => 'i18n_block_translate_tab_page',
    'page arguments' => array(
      4,
      5,
    ),
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
    'weight' => 10,
  );
  $items['admin/structure/block/manage/%/%/translate/%i18n_language'] = array(
    'title' => 'Translate',
    'access callback' => 'i18n_block_translate_tab_access',
    'access arguments' => array(
      4,
      5,
    ),
    'page callback' => 'i18n_block_translate_tab_page',
    'page arguments' => array(
      4,
      5,
      7,
    ),
    'type' => MENU_CALLBACK,
    'weight' => 10,
  );
  return $items;
}