summaryrefslogtreecommitdiff
path: root/includes
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 /includes
parentf96e48456d9326ab27d40ae38cdd0305df62fb99 (diff)
downloadbrdo-94098f7e931db2efc354af97302c2f44af7bb4f5.tar.gz
brdo-94098f7e931db2efc354af97302c2f44af7bb4f5.tar.bz2
#81033 by webchick and neclimdul. Uninstall module API.
Diffstat (limited to 'includes')
-rw-r--r--includes/install.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/install.inc b/includes/install.inc
index 087d02577..9b19cf665 100644
--- a/includes/install.inc
+++ b/includes/install.inc
@@ -351,6 +351,18 @@ function drupal_install_module($module) {
}
/**
+ * Calls the uninstall function and updates the system table for a given module.
+ *
+ * @param $module
+ * The module to uninstall.
+ */
+function drupal_uninstall_module($module) {
+ module_load_install($module);
+ module_invoke($module, 'uninstall');
+ drupal_set_installed_schema_version($module, SCHEMA_UNINSTALLED);
+}
+
+/**
* Verify the state of the specified file.
*
* @param $file