You are here

function i18n_menu_item_translation_page in Internationalization 7

Callback for menu item translation tab.

1 string reference to 'i18n_menu_item_translation_page'
i18n_menu_i18n_translation_set_info in i18n_menu/i18n_menu.i18n.inc
Implements hook_i18n_translation_set_info()

File

i18n_menu/i18n_menu.i18n.inc, line 122
Internationalization (i18n) hooks

Code

function i18n_menu_item_translation_page($type, $item) {
  module_load_include('admin.inc', 'i18n_menu');

  // If the item has a language code, we can only support translation sets.
  $translation_set = !empty($item['i18n_tsid']) ? i18n_translation_set_load($item['i18n_tsid']) : NULL;
  $overview = i18n_menu_translation_item_overview($item, $translation_set);
  $translation_form = drupal_get_form('i18n_menu_translation_form', $translation_set, $item);
  return $overview + $translation_form;
}