Commit f7cd2518 authored by Dries's avatar Dries
Browse files

- Patch #356747 by chx: fix hidden module dependencies.

parent f088ccfb
......@@ -6,4 +6,4 @@ version = VERSION
core = 7.x
files[] = taxonomy_test.module
hidden[] = TRUE
dependencies[] = Taxonomy
dependencies[] = taxonomy
......@@ -643,6 +643,8 @@ function system_modules($form_state = array()) {
// Mark dependents disabled so user can not remove modules being depended on.
$dependents = array();
foreach ($module->info['dependents'] as $dependent) {
// Hidden modules are unset already.
if (isset($files[$dependent])) {
if ($files[$dependent]->status == 1) {
$extra['dependents'][] = t('@module (<span class="admin-enabled">enabled</span>)', array('@module' => $files[$dependent]->info['name']));
$extra['disabled'] = TRUE;
......@@ -651,6 +653,7 @@ function system_modules($form_state = array()) {
$extra['dependents'][] = t('@module (<span class="admin-disabled">disabled</span>)', array('@module' => $files[$dependent]->info['name']));
}
}
}
$form['modules'][$module->info['package']][$filename] = _system_modules_build_row($module->info, $extra);
}
// Add basic information to the fieldsets.
......
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