function menu_link_weight_parent_ajax_callback in Menu Link Weight 7
AJAX callback that returns the updated menu_link_weight element.
This will update whenever the selection of the menu link parent changes.
1 string reference to 'menu_link_weight_parent_ajax_callback'
- menu_link_weight_form_node_form_alter in ./
menu_link_weight.module - Implements hook_form_FORM_ID_alter().
File
- ./
menu_link_weight.module, line 120 - Replaces the menu link weight dropdown with a tabledrag widget.
Code
function menu_link_weight_parent_ajax_callback($form, $form_state) {
return $form['menu']['link']['menu_link_weight'];
}