From 6bca3db38b7baa8e1e1340ca8cb5bda1ff67e2e5 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 14 Jun 2011 04:27:14 -0400 Subject: Issue #1115510 by catch, barbi, amateescu: Fixed Entity providing modules must call field_attach_delete_bundle() in hook_uninstall(). --- modules/taxonomy/taxonomy.install | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/taxonomy/taxonomy.install') diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install index f28ffedf4..56b7e01c6 100644 --- a/modules/taxonomy/taxonomy.install +++ b/modules/taxonomy/taxonomy.install @@ -12,6 +12,11 @@ function taxonomy_uninstall() { // Remove variables. variable_del('taxonomy_override_selector'); variable_del('taxonomy_terms_per_page_admin'); + // Remove taxonomy_term bundles. + $vocabularies = db_query("SELECT machine_name FROM {taxonomy_vocabulary}")->fetchCol(); + foreach ($vocabularies as $vocabulary) { + field_attach_delete_bundle('taxonomy_term', $vocabulary); + } } /** -- cgit v1.2.3