diff --git a/fedora_repository.solutionpacks.inc b/fedora_repository.solutionpacks.inc index df651c93..1b395548 100644 --- a/fedora_repository.solutionpacks.inc +++ b/fedora_repository.solutionpacks.inc @@ -139,25 +139,21 @@ function fedora_repository_solution_pack_form(&$form_state, $solution_pack_modul ); if (!$needs_install && !$needs_update) { $form['install_status']['#value'] = theme_image('misc/watchdog-ok.png') . t('All required objects are installed and up-to-date.'); + $submit_button_text = t("Force Reinstallation of Fedora Objects"); + } else { $form['install_status']['#value'] = theme_image('misc/watchdog-warning.png') . t('Some objects must be re-ingested. See Objects list for details.'); + $submit_button_text = t("Install Fedora Objects"); + } - if ($needs_install || $needs_update) { - $form['submit'] = array( - '#value' => t('Install'), - '#type' => 'submit', - '#name' => $solution_pack_module, - ); - } - else { - $form['force_submit'] = array( - '#value' => t('Forced Reinstall'), - '#attributes' => array('title' => ('Installs all fedora objects, reverting any changes made since installation. Use with caution.')), - '#type' => 'submit', - '#name' => $solution_pack_module, - ); - } + $form['submit'] = array( + '#value' => $submit_button_text, + '#type' => 'submit', + '#name' => $solution_pack_module, + ); + + $form['#submit'] = array( 'fedora_repository_solution_pack_form_submit', );