summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-10 06:38:20 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-10 06:38:20 +0000
commit029c48c68d7f4f2bc94e93e3333908ca158433c5 (patch)
treebf1fef18db8910f94ee977861829b966d42efb00 /modules/system/system.admin.inc
parent82b51dff1d2fd90b439129c70b415d30a06d1bce (diff)
downloadbrdo-029c48c68d7f4f2bc94e93e3333908ca158433c5.tar.gz
brdo-029c48c68d7f4f2bc94e93e3333908ca158433c5.tar.bz2
- Patch #306151 by agentrickard, David_Rothstein, Dave Reid, dbabbage, moshe weitzman: automatically install/uninstall schema.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 37d1fc2a0..2d1875e74 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1051,10 +1051,10 @@ function system_modules_uninstall($form_state = NULL) {
// Grab the module info
$info = unserialize($module->info);
- // Load the .install file, and check for an uninstall hook.
+ // Load the .install file, and check for an uninstall or schema hook.
// If the hook exists, the module can be uninstalled.
module_load_install($module->name);
- if (module_hook($module->name, 'uninstall')) {
+ if (module_hook($module->name, 'uninstall') || module_hook($module->name, 'schema')) {
$form['modules'][$module->name]['name'] = array('#markup' => $info['name'] ? $info['name'] : $module->name);
$form['modules'][$module->name]['description'] = array('#markup' => t($info['description']));
$options[$module->name] = '';