summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan AraƱa Cruz2011-06-23 11:15:07 (GMT)
committer Mark Sonnabaum2011-07-14 02:28:09 (GMT)
commitb384c86d0545c604e07ba0468d7f0a6421998e09 (patch)
tree793e4898e544035d757fcfa77fefe624f661d7aa
parent4c6574432b7fd30fe7f614c897f54d6194258e65 (diff)
Issue #1196782 by Damien Tournoud: Respect the order of dependencies in pm-enable and pm-disable.
-rw-r--r--commands/core/drupal/environment.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/commands/core/drupal/environment.inc b/commands/core/drupal/environment.inc
index 2c239be..b9cbfeb 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);
}
/**