You are here

function og_menu_default_links_uninstall in Organic Groups Menu (OG Menu) 7.3

Implements hook_uninstall().

File

contrib/og_menu_default_links/og_menu_default_links.install, line 10
Handle installation and un-installation of the module.

Code

function og_menu_default_links_uninstall() {
  $bundles = og_get_all_group_bundle();

  // Check if a setting exists.
  if ($bundles) {
    foreach ($bundles as $entity_type => $entity_bundles) {
      foreach ($entity_bundles as $bundle => $bundle_label) {
        $group_type = strtolower('_' . $bundle);
        variable_del('og_menu_default_links_' . $entity_type . $group_type, FALSE);
      }
    }
  }
}