You are here

function menu_link_menu_link_delete in Menu Link (Field) 7

Implements hook_menu_link_delete().

Remove link from all menu_link fields. Note that this module disables the possibility to delete menu links through the Admin > Structure > Menus interface that are used in a menu_link field (by storing menu links under its own module instead of system). So this hook may not be neccessary at all.

File

./menu_link.module, line 278

Code

function menu_link_menu_link_delete($item) {
  if ($item['module'] == 'menu_link' && empty($item['menu_link_field_save'])) {

    // TODO
  }
}