function menu_link_weight_menu_link_content_parent_ajax_callback in Menu Link Weight 8
Same name and namespace in other branches
- 8.2 menu_link_weight.menu_ui.inc \menu_link_weight_menu_link_content_parent_ajax_callback()
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_menu_link_content_parent_ajax_callback'
- _menu_link_weight_menu_link_form_alter in ./
menu_link_weight.menu_ui.inc - Alter and attach the menu link weight widgets for menu link edit form.
File
- ./
menu_link_weight.menu_ui.inc, line 143
Code
function menu_link_weight_menu_link_content_parent_ajax_callback($form, FormStateInterface $form_state) {
return $form['menu_link_weight'];
}