From ce1fa8c11271e5be1538d2f747adb26b907d78e5 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 24 Aug 2009 00:42:34 +0000 Subject: #162788 by dww, Dave Reid, and JohnAlbin: Add option to include modules that aren't enabled in Update Status. --- modules/update/update.report.inc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'modules/update/update.report.inc') 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 .= '
'; 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 .= "
\n"; $row .= "\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])) { -- cgit v1.2.3