function multiple_node_menu_ajax_callback in Multiple Node Menu 7
Same name and namespace in other branches
- 8 multiple_node_menu.module \multiple_node_menu_ajax_callback()
Ajax callback for multiple menu link forms.
2 string references to 'multiple_node_menu_ajax_callback'
- multiple_node_menu_current_links_form in ./
multiple_node_menu.module - Generate a form for editing a menu links.
- multiple_node_menu_form_node_form_alter in ./
multiple_node_menu.module - Implements hook_form_BASE_FORM_ID_alter().
File
- ./
multiple_node_menu.module, line 315 - Add multiple menu management capabilities to node form.
Code
function multiple_node_menu_ajax_callback($form, $form_state) {
// Clear fields for link specific values. The other fields will default to
// previous entered values.
$form['multiple_node_menu']['link']['add_link']['link_title']['#value'] = '';
$form['multiple_node_menu']['link']['add_link']['description']['#value'] = '';
return $form['multiple_node_menu']['link'];
}