function taxonomy_uninstall

Implements hook_uninstall().

File

drupal/core/modules/taxonomy/taxonomy.install, line 13
Install, update and uninstall functions for the taxonomy module.

Code

function taxonomy_uninstall() {

  // Remove taxonomy_term bundles.
  $config_names = config_get_storage_names_with_prefix('taxonomy.vocabulary.');
  foreach ($config_names as $config_name) {
    $vid = substr($config_name, strlen('taxonomy.vocabulary.'));
    entity_invoke_bundle_hook('delete', 'taxonomy_term', $vid);
  }
}