summaryrefslogtreecommitdiff
path: root/modules/drupal/drupal.install
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-01 07:40:08 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-01 07:40:08 +0000
commit94098f7e931db2efc354af97302c2f44af7bb4f5 (patch)
tree37dce791df95e6266a9fef842cb441e4cf6fdb82 /modules/drupal/drupal.install
parentf96e48456d9326ab27d40ae38cdd0305df62fb99 (diff)
downloadbrdo-94098f7e931db2efc354af97302c2f44af7bb4f5.tar.gz
brdo-94098f7e931db2efc354af97302c2f44af7bb4f5.tar.bz2
#81033 by webchick and neclimdul. Uninstall module API.
Diffstat (limited to 'modules/drupal/drupal.install')
-rw-r--r--modules/drupal/drupal.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/drupal/drupal.install b/modules/drupal/drupal.install
index f1c93d56c..909c539de 100644
--- a/modules/drupal/drupal.install
+++ b/modules/drupal/drupal.install
@@ -1,6 +1,9 @@
<?php
// $Id$
+/**
+ * Implementation of hook_install().
+ */
function drupal_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
@@ -52,3 +55,20 @@ function drupal_install() {
break;
}
}
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function drupal_uninstall() {
+ db_query('DROP TABLE {client}');
+ db_query('DROP TABLE {client_system}');
+ variable_del('drupal_authentication_service');
+ variable_del('drupal_directory');
+ variable_del('drupal_register');
+ variable_del('drupal_server');
+ variable_del('drupal_system');
+ variable_del('drupal_statistics');
+ variable_del('drupal_client_service');
+ variable_del('drupal_default_da_server');
+ variable_del('drupal_default_da_server_only');
+}