You are here

function menu_attributes_form_node_form_submit in Menu Attributes 6.2

Same name and namespace in other branches
  1. 6 menu_attributes.module \menu_attributes_form_node_form_submit()

Form submit handler for node forms.

If the user has specified a title attribute, set customized to a TRUE value so it will not be overridden by the node title in menu_nodeapi().

1 string reference to 'menu_attributes_form_node_form_submit'
menu_attributes_form_alter in ./menu_attributes.module
Implements hook_form_alter().

File

./menu_attributes.module, line 150
Alters the menu item form to allow the administrator to specify additional attributes for the menu link

Code

function menu_attributes_form_node_form_submit($form, &$form_state) {
  if (!empty($form_state['values']['menu']['options']['attributes']['title'])) {
    $form_state['values']['menu']['customized'] = 1;
  }
}