function hook_menu_link_delete

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 system.api.php hook_menu_link_delete($link)
cle7 system.api.php hook_menu_link_delete($link)
elmsmedia7 system.api.php hook_menu_link_delete($link)
icor7 system.api.php hook_menu_link_delete($link)
meedjum_blog7 system.api.php hook_menu_link_delete($link)
mooc7 system.api.php hook_menu_link_delete($link)

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.

Parameters

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

See also

hook_menu_link_insert()

hook_menu_link_update()

Related topics

2 functions implement 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.

admin_menu_menu_link_delete in sites/all/modules/ulmus/admin_menu/admin_menu.module
Implements hook_menu_link_delete().
menu_test_menu_link_delete in modules/simpletest/tests/menu_test.module
Implements hook_menu_link_delete().
1 invocation of hook_menu_link_delete()
_menu_delete_item in includes/menu.inc
Deletes a single menu link.

File

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

Code

function hook_menu_link_delete($link) {
  // Delete the record from our table.
  db_delete('menu_example')->condition('mlid', $link['mlid'])->execute();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.