diff --git a/commands/core/drupal/environment.inc b/commands/core/drupal/environment.inc index 2c239be529507ca20457fd09fa659630dbbfb3a7..b9cbfeb309536e14e7e677811599c8e14a03a34b 100644 --- a/commands/core/drupal/environment.inc +++ b/commands/core/drupal/environment.inc @@ -84,7 +84,10 @@ function drush_module_dependents($modules, $module_info) { * Array of module names */ function drush_module_enable($modules) { - module_enable($modules, FALSE); + // The list of modules already have all the dependencies, but they might not + // be in the correct order. Still pass $enable_dependencies = TRUE so that + // Drupal will enable the modules in the correct order. + module_enable($modules); } /** @@ -94,7 +97,10 @@ function drush_module_enable($modules) { * Array of module names */ function drush_module_disable($modules) { - module_disable($modules, FALSE); + // The list of modules already have all the dependencies, but they might not + // be in the correct order. Still pass $enable_dependencies = TRUE so that + // Drupal will enable the modules in the correct order. + module_disable($modules); } /**