function og_menu_menu_delete in Organic Groups Menu (OG Menu) 7.3
Same name and namespace in other branches
- 7.2 og_menu.module \og_menu_menu_delete()
Implements hook_menu_delete().
Looks like og_menu 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
- ./
og_menu.module, line 1135 - Integrates Menu with Organic Groups. Lots of menu forms duplication in OG context.
Code
function og_menu_menu_delete($menu) {
db_delete('og_menu')
->condition('menu_name', $menu['menu_name'])
->execute();
}