function menu_node_delete_form_submit in Menu Node API 6
Custom form handler to react to menu item changes.
1 string reference to 'menu_node_delete_form_submit'
- menu_node_form_menu_item_delete_form_alter in ./
menu_node.module - Implements hook_form_alter().
File
- ./
menu_node.module, line 327 - Menu Node API Manages relationships between the {node} and {menu_links} table.
Code
function menu_node_delete_form_submit($form, &$form_state) {
$mlid = $form_state['values']['mlid'];
$node = menu_node_get_node($mlid, TRUE);
// Is this a node item?
if (!empty($node)) {
menu_node_delete($node);
}
}