You are here

function translation_menu in Drupal 7

Same name and namespace in other branches
  1. 6 modules/translation/translation.module \translation_menu()

Implements hook_menu().

File

modules/translation/translation.module, line 57
Manages content translations.

Code

function translation_menu() {
  $items = array();
  $items['node/%node/translate'] = array(
    'title' => 'Translate',
    'page callback' => 'translation_node_overview',
    'page arguments' => array(
      1,
    ),
    'access callback' => '_translation_tab_access',
    'access arguments' => array(
      1,
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'file' => 'translation.pages.inc',
  );
  return $items;
}