summaryrefslogtreecommitdiff
path: root/modules/update/update.report.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 00:42:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-24 00:42:34 +0000
commitce1fa8c11271e5be1538d2f747adb26b907d78e5 (patch)
treea28d4f5ea2dac651ac4abee94921721e95790a97 /modules/update/update.report.inc
parent7d818b26062c90c253705c8eb52f755fe750720e (diff)
downloadbrdo-ce1fa8c11271e5be1538d2f747adb26b907d78e5.tar.gz
brdo-ce1fa8c11271e5be1538d2f747adb26b907d78e5.tar.bz2
#162788 by dww, Dave Reid, and JohnAlbin: Add option to include modules that aren't enabled in Update Status.
Diffstat (limited to 'modules/update/update.report.inc')
-rw-r--r--modules/update/update.report.inc17
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])) {