function 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/
cis7 menu_link_delete($mlid, $path = NULL)
cle7 menu_link_delete($mlid, $path = NULL)
elmsmedia7 menu_link_delete($mlid, $path = NULL)
icor7 menu_link_delete($mlid, $path = NULL)
meedjum_blog7 menu_link_delete($mlid, $path = NULL)
mooc7 menu_link_delete($mlid, $path = NULL)

Delete one or several menu links.


$mlid: A valid menu link mlid or NULL. If NULL, $path is used.

$path: The path to the menu items to be deleted. $mlid must be NULL.

Related topics

9 calls to menu_link_delete()
book_node_delete in modules/book/book.module
Implements hook_node_delete().
book_remove_form_submit in modules/book/
Form submission handler for book_remove_form().
devel_generate_menu_data in sites/all/modules/ulmus/devel/devel_generate/
menu_delete_menu_confirm_submit in modules/menu/
Delete a custom menu and all links in it.
menu_item_delete_form_submit in modules/menu/
Process menu delete form submissions.

... See full list

1 string reference to 'menu_link_delete'
_menu_delete_item in includes/
Deletes a single menu link.


includes/, line 2996
API for the Drupal menu system.


function menu_link_delete($mlid, $path = NULL) {
  if (isset($mlid)) {
    _menu_delete_item(db_query("SELECT * FROM {menu_links} WHERE mlid = :mlid", array(':mlid' => $mlid))->fetchAssoc());
  else {
    $result = db_query("SELECT * FROM {menu_links} WHERE link_path = :link_path", array(':link_path' => $path));
    foreach ($result as $link) {



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.