function menu_node_delete_menu_form_submit in Menu Node API 6
Custom form handler to react to custom menu changes.
1 string reference to 'menu_node_delete_menu_form_submit'
- menu_node_form_menu_delete_menu_confirm_alter in ./
menu_node.module - Implements hook_form_alter().
File
- ./
menu_node.module, line 339 - Menu Node API Manages relationships between the {node} and {menu_links} table.
Code
function menu_node_delete_menu_form_submit($form, &$form_state) {
$menu_name = $form_state['values']['menu_name'];
$items = menu_node_get_links_by_menu($menu_name);
// We pass these individually in case any hook implementations care.
foreach ($items as $mlid) {
$node = menu_node_get_node($mlid, TRUE);
menu_node_delete($node);
}
}