You are here

function abt_uninstall in Access By Term 7

Implements hook_uninstall().

File

./abt.install, line 10
abt.install Install, update and uninstall functions for the ABT module.

Code

function abt_uninstall() {
  $fields = field_read_fields(array(
    'module' => 'taxonomy',
  ));
  foreach ($fields as $field_name => $field) {
    if (array_key_exists('abt_map', $field['settings'])) {
      unset($field['settings']['abt_map']);
      field_update_field($field);
    }
  }
}