summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-19 01:53:26 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-19 01:53:26 +0000
commit9e8bfddf290de2406ef089e6405b20deb19ba909 (patch)
tree4f11abfa4e05feb76fb2e468c99a198aace0bc31
parentcd9794bea70abf780a5b6e645799b2cd829b0c77 (diff)
downloadbrdo-9e8bfddf290de2406ef089e6405b20deb19ba909.tar.gz
brdo-9e8bfddf290de2406ef089e6405b20deb19ba909.tar.bz2
#360104 by drewish: Allow taxomomy module to be uninstalled.
-rw-r--r--modules/system/system.install2
-rw-r--r--modules/taxonomy/taxonomy.install16
2 files changed, 17 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index db2642679..bef8dcb83 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -330,7 +330,7 @@ function system_install() {
}
// Create tables.
- $modules = array('system', 'filter', 'block', 'user', 'node', 'taxonomy');
+ $modules = array('system', 'filter', 'block', 'user', 'node');
foreach ($modules as $module) {
drupal_install_schema($module);
}
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install
index 20c82c7ee..9fc2ad23c 100644
--- a/modules/taxonomy/taxonomy.install
+++ b/modules/taxonomy/taxonomy.install
@@ -1,6 +1,22 @@
<?php
// $Id$
+ /**
+ * Implementation of hook_install().
+ */
+function taxonomy_install() {
+ // Create tables.
+ drupal_install_schema('taxonomy');
+}
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function taxonomy_uninstall() {
+ // Remove tables.
+ drupal_uninstall_schema('taxonomy');
+}
+
/**
* Implementation of hook_schema().
*/