#602496 by dww: Clean up the update manager project selector page when updating your site.

merge-requests/26/head
Angie Byron 2009-10-29 07:11:50 +00:00
parent b1dc42eb92
commit 616861c866
1 changed files with 3 additions and 5 deletions

View File

@ -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