function i18nmenu_menu_item_update in Internationalization 6
Submit handler for the menu_edit_item form.
On menu item insert or update, save a translation record.
1 string reference to 'i18nmenu_menu_item_update'
- i18nmenu_form_menu_edit_item_alter in i18nmenu/
i18nmenu.module - Implementation of hook_form_form_id_alter().
File
- i18nmenu/
i18nmenu.module, line 320 - Internationalization (i18n) submodule: Menu translation.
Code
function i18nmenu_menu_item_update($form, &$form_state) {
// Ensure we have a menu item to work with.
if (isset($form_state['values']['menu'])) {
$item = $form_state['values']['menu'];
_i18nmenu_update_item($item);
}
}