function og_menu_uninstall in Organic Groups Menu (OG Menu) 7.2
Same name and namespace in other branches
- 6.2 og_menu.install \og_menu_uninstall()
- 6 og_menu.install \og_menu_uninstall()
- 7.3 og_menu.install \og_menu_uninstall()
Implementation of hook_uninstall.
Deletes og_menu variables. (todo: Deletes menus that were created through og_menu)
File
- ./
og_menu.install, line 30
Code
function og_menu_uninstall() {
$vars = array(
'og_menu_assignment',
'og_menu_block_links',
'og_menu_max_menus_per_group',
'og_menu_show_blocks',
'og_menu_show_homebox',
'og_menu_show_menuposition',
'og_menu_show_nodetype',
);
foreach ($vars as $var) {
variable_del($var);
}
// @todo Delete Table og_menu
// @todo Decide whether we want to delete all menu's created by og_menu.
}