summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-19 01:23:39 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-19 01:23:39 +0000
commit0c57b989f563767aeba00e63dcbdf42845e3b37e (patch)
treebd05e1529bd4d80eb3d2c30bc79b2df838ab1416
parente8cff6403b842d8ac49f514934f03d5e84bcde76 (diff)
downloadbrdo-0c57b989f563767aeba00e63dcbdf42845e3b37e.tar.gz
brdo-0c57b989f563767aeba00e63dcbdf42845e3b37e.tar.bz2
#360106 by Dave Reid: Allow comment module to be uninstalled.
-rw-r--r--modules/comment/comment.install16
-rw-r--r--modules/system/system.install2
2 files changed, 17 insertions, 1 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index b7195baba..e0c9d622b 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -2,6 +2,22 @@
// $Id$
/**
+ * Implementation of hook_install().
+ */
+function comment_install() {
+ // Create tables.
+ drupal_install_schema('comment');
+}
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function comment_uninstall() {
+ // Remove tables.
+ drupal_uninstall_schema('comment');
+}
+
+/**
* Implementation of hook_enable().
*/
function comment_enable() {
diff --git a/modules/system/system.install b/modules/system/system.install
index 7e3714aa9..db2642679 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', 'comment', 'taxonomy');
+ $modules = array('system', 'filter', 'block', 'user', 'node', 'taxonomy');
foreach ($modules as $module) {
drupal_install_schema($module);
}