Commit f56b384b authored by Dries's avatar Dries

- Patch #833192 by carlos8f: installer might install modules in wrong order.

parent 35373aa8
......@@ -1348,6 +1348,15 @@ function install_profile_modules(&$install_state) {
$modules = variable_get('install_profile_modules', array());
$files = system_rebuild_module_data();
variable_del('install_profile_modules');
// Install dependencies first.
$modules = array_flip($modules);
foreach ($modules as $module => $weight) {
$modules[$module] = $files[$module]->sort;
}
arsort($modules);
$modules = array_keys($modules);
$operations = array();
foreach ($modules as $module) {
$operations[] = array('_install_module_batch', array($module, $files[$module]->info['name']));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment