You are here

function og_menu_single_uninstall in OG Menu Single 7

Implements hook_uninstall().

File

./og_menu_single.install, line 25
Install hooks for OG menu single.

Code

function og_menu_single_uninstall() {
  if ($menu = menu_load(OG_MENU_SINGLE_MENU_NAME)) {
    menu_delete($menu);
  }
  $vars = array(
    'og_menu_single_group_content__node_',
    'og_menu_single_group__node_',
  );
  foreach (node_type_get_names() as $type => $name) {
    foreach ($vars as $var) {
      variable_del($var . '_' . $type);
    }
  }
}