You are here

function groupmenu_menu_delete in Group Menu 7

Implements hook_menu_delete().

Looks like groupmenu did not used to catch the case where a menu item was deleted in the admin area, and forgot to delete it's own db_record.

File

./groupmenu.module, line 709
Integrates menu with Group.

Code

function groupmenu_menu_delete($menu) {
  db_delete('group_menu')
    ->condition('menu_name', $menu['menu_name'])
    ->execute();
}