diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-29 07:11:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-29 07:11:50 +0000 |
commit | 616861c866e414114642144712d2edd8c92e57c9 (patch) | |
tree | 28301d2554e4d412aeed491395fa354f08914f9b | |
parent | b1dc42eb928a03ce98a1971440a6c97feb22cf56 (diff) | |
download | brdo-616861c866e414114642144712d2edd8c92e57c9.tar.gz brdo-616861c866e414114642144712d2edd8c92e57c9.tar.bz2 |
#602496 by dww: Clean up the update manager project selector page when updating your site.
-rw-r--r-- | modules/update/update.manager.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/update/update.manager.inc b/modules/update/update.manager.inc index 26ed4e8f9..ab8eade28 100644 --- a/modules/update/update.manager.inc +++ b/modules/update/update.manager.inc @@ -215,8 +215,8 @@ function update_manager_update_form($form, $form_state = array(), $context) { '#header' => $headers, '#options' => $projects['enabled'], ); - if (count($projects) > 1) { - $form['projects']['#prefix'] = '<h2>' . t('Enabled add-ons') . '</h2>'; + if (!empty($projects['disabled'])) { + $form['projects']['#prefix'] = '<h2>' . t('Enabled') . '</h2>'; } } @@ -226,10 +226,8 @@ function update_manager_update_form($form, $form_state = array(), $context) { '#header' => $headers, '#options' => $projects['disabled'], '#weight' => 1, + '#prefix' => '<h2>' . t('Disabled') . '</h2>', ); - if (count($projects) > 1) { - $form['disabled_projects']['#prefix'] = '<h2>' . t('Disabled add-ons') . '</h2>'; - } } // If either table has been printed yet, we need a submit button and to |