You are here

function civicrm_entity_uninstall in CiviCRM Entity 7.2

Implements hook_uninstall()

File

./civicrm_entity.install, line 12
Installation/Un-installation hooks for CiviCRM Entity.

Code

function civicrm_entity_uninstall() {
  drupal_load('module', 'civicrm_entity');
  $civicrm_entity_info = civicrm_entity_get_supported_entity_info();
  foreach ($civicrm_entity_info as $entity_type => $info) {
    field_attach_delete_bundle($entity_type, $entity_type);
  }
  variable_del('civicrm_entity_admin_enabled_entities');
}