function _menu_attributes_form_submit in Menu Attributes 6
Same name and namespace in other branches
- 8 menu_attributes.module \_menu_attributes_form_submit()
- 6.2 menu_attributes.module \_menu_attributes_form_submit()
- 7 menu_attributes.module \_menu_attributes_form_submit()
Form submit handler for menu item links.
Move the title attributes value into the 'description' value so that it will get properly saved.
1 string reference to '_menu_attributes_form_submit'
- _menu_attributes_form_alter in ./
menu_attributes.module - Add the menu attributes to a menu item edit form.
File
- ./
menu_attributes.module, line 233 - Alters the menu item form to allow the administrator to specify additional attributes for the menu link
Code
function _menu_attributes_form_submit($form, &$form_state) {
if (isset($form_state['values']['menu']['options']['attributes']['title'])) {
$form_state['values']['menu']['description'] = $form_state['values']['menu']['options']['attributes']['title'];
}
elseif (isset($form_state['values']['options']['attributes']['title'])) {
$form_state['values']['description'] = $form_state['values']['options']['attributes']['title'];
}
}