From 029c48c68d7f4f2bc94e93e3333908ca158433c5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Sep 2009 06:38:20 +0000 Subject: - Patch #306151 by agentrickard, David_Rothstein, Dave Reid, dbabbage, moshe weitzman: automatically install/uninstall schema. --- modules/system/system.admin.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system/system.admin.inc') 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] = ''; -- cgit v1.2.3