function hook_menu_link_delete

Inform modules that a menu link has been deleted.

This hook is used to notify modules that menu items have been deleted. Contributed modules may use the information to perform actions based on the information entered into the menu system.


$link: Associative array defining a menu link as passed into menu_link_save().

See also



Related topics

1 function implements hook_menu_link_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

menu_test_menu_link_delete in drupal/modules/simpletest/tests/menu_test.module
Implements hook_menu_link_delete().
1 invocation of hook_menu_link_delete()
_menu_delete_item in drupal/includes/
Deletes a single menu link.


drupal/modules/system/system.api.php, line 1411
Hooks provided by Drupal core and the System module.


function hook_menu_link_delete($link) {

  // Delete the record from our table.
    ->condition('mlid', $link['mlid'])