|
|
@ -139,25 +139,21 @@ function fedora_repository_solution_pack_form(&$form_state, $solution_pack_modul |
|
|
|
); |
|
|
|
); |
|
|
|
if (!$needs_install && !$needs_update) { |
|
|
|
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.'); |
|
|
|
$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 { |
|
|
|
else { |
|
|
|
$form['install_status']['#value'] = theme_image('misc/watchdog-warning.png') . t('Some objects must be re-ingested. See Objects list for details.'); |
|
|
|
$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( |
|
|
|
$form['submit'] = array( |
|
|
|
'#value' => $submit_button_text, |
|
|
|
'#value' => t('Install'), |
|
|
|
'#type' => 'submit', |
|
|
|
'#type' => 'submit', |
|
|
|
'#name' => $solution_pack_module, |
|
|
|
'#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( |
|
|
|
$form['#submit'] = array( |
|
|
|
'fedora_repository_solution_pack_form_submit', |
|
|
|
'fedora_repository_solution_pack_form_submit', |
|
|
|
); |
|
|
|
); |
|
|
|