You are here

og_menu_default_links.install in Organic Groups Menu (OG Menu) 7.3

Handle installation and un-installation of the module.

File

contrib/og_menu_default_links/og_menu_default_links.install
View source
<?php

/**
 * @file
 * Handle installation and un-installation of the module.
 */

/**
 * Implements hook_uninstall().
 */
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);
      }
    }
  }
}

Functions