summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
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