summaryrefslogtreecommitdiff
path: root/modules/profile/profile.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/profile/profile.install
parentf96e48456d9326ab27d40ae38cdd0305df62fb99 (diff)
downloadbrdo-94098f7e931db2efc354af97302c2f44af7bb4f5.tar.gz
brdo-94098f7e931db2efc354af97302c2f44af7bb4f5.tar.bz2
#81033 by webchick and neclimdul. Uninstall module API.
Diffstat (limited to 'modules/profile/profile.install')
-rw-r--r--modules/profile/profile.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/profile/profile.install b/modules/profile/profile.install
index df1c85c7c..51237ed18 100644
--- a/modules/profile/profile.install
+++ b/modules/profile/profile.install
@@ -1,6 +1,9 @@
<?php
// $Id$
+/**
+ * Implementation of hook_install().
+ */
function profile_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
@@ -63,3 +66,12 @@ function profile_install() {
break;
}
}
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function profile_uninstall() {
+ db_query('DROP TABLE {profile_fields}');
+ db_query('DROP TABLE {profile_values}');
+ variable_del('profile_block_author_fields');
+}