From 94098f7e931db2efc354af97302c2f44af7bb4f5 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Fri, 1 Sep 2006 07:40:08 +0000 Subject: #81033 by webchick and neclimdul. Uninstall module API. --- includes/install.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'includes') diff --git a/includes/install.inc b/includes/install.inc index 087d02577..9b19cf665 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -350,6 +350,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. * -- cgit v1.2.3