diff options
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 4 |
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] = ''; |