diff options
Diffstat (limited to 'modules/update/update.report.inc')
-rw-r--r-- | modules/update/update.report.inc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/update/update.report.inc b/modules/update/update.report.inc index 2133510f0..ac1947dd8 100644 --- a/modules/update/update.report.inc +++ b/modules/update/update.report.inc @@ -180,7 +180,18 @@ function theme_update_report($data) { $row .= '<div class="includes">'; sort($project['includes']); - $row .= t('Includes: %includes', array('%includes' => implode(', ', $project['includes']))); + if (!empty($project['disabled'])) { + sort($project['disabled']); + // Make sure we start with a clean slate for each project in the report. + $includes_items = array(); + $row .= t('Includes:'); + $includes_items[] = t('Enabled: %includes', array('%includes' => implode(', ', $project['includes']))); + $includes_items[] = t('Disabled: %disabled', array('%disabled' => implode(', ', $project['disabled']))); + $row .= theme('item_list', $includes_items); + } + else { + $row .= t('Includes: %includes', array('%includes' => implode(', ', $project['includes']))); + } $row .= "</div>\n"; $row .= "</div>\n"; // info div. @@ -198,8 +209,8 @@ function theme_update_report($data) { 'core' => t('Drupal core'), 'module' => t('Modules'), 'theme' => t('Themes'), - 'disabled-module' => t('Disabled modules'), - 'disabled-theme' => t('Disabled themes'), + 'module-disabled' => t('Disabled modules'), + 'theme-disabled' => t('Disabled themes'), ); foreach ($project_types as $type_name => $type_label) { if (!empty($rows[$type_name])) { |