function menu_attributes_form_node_form_alter in Menu Attributes 7
Same name and namespace in other branches
- 8 menu_attributes.module \menu_attributes_form_node_form_alter()
Implements hook_form_FORM_ID_alter().
Adds menu attribute options to the node's edit menu item form.
See also
File
- ./
menu_attributes.module, line 156 - Alters the menu item form to allow the administrator to specify additional attributes for the menu link
Code
function menu_attributes_form_node_form_alter(&$form, $form_state) {
if (isset($form['menu']['link']) && isset($form['#node']->menu)) {
$item = $form['#node']->menu;
_menu_attributes_form_alter($form['menu']['link'], $item, $form);
}
}