function menu_link_delete

Deletes a menu link.

Parameters

int $mlid: The menu link ID.

See also

menu_link_delete_multiple()

7 calls to menu_link_delete()
book_node_predelete in drupal/core/modules/book/book.module
Implements hook_node_predelete().
book_remove_form_submit in drupal/core/modules/book/book.pages.inc
Form submission handler for book_remove_form().
LinkDelete::submitForm in drupal/core/modules/shortcut/lib/Drupal/shortcut/Form/LinkDelete.php
Form submission handler.
LinksTest::testMenuLinkReparenting in drupal/core/modules/system/lib/Drupal/system/Tests/Menu/LinksTest.php
Test automatic reparenting of menu links.
MenuLinkDeleteForm::submitForm in drupal/core/modules/menu/lib/Drupal/menu/Form/MenuLinkDeleteForm.php
Form submission handler.

... See full list

1 string reference to 'menu_link_delete'
menu_menu in drupal/core/modules/menu/menu.module
Implements hook_menu().

File

drupal/core/modules/menu_link/menu_link.module, line 67
Enables users to create menu links.

Code

function menu_link_delete($mlid) {
  menu_link_delete_multiple(array(
    $mlid,
  ));
}