Browse Source

Minor code cleanup

pull/82/head
Alan Stanley 13 years ago
parent
commit
6429d11a8b
  1. 18
      fedora_repository.solutionpacks.inc

18
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.')),
'#value' => $submit_button_text,
'#type' => 'submit',
'#name' => $solution_pack_module,
);
}
$form['#submit'] = array(
'fedora_repository_solution_pack_form_submit',
);

Loading…
Cancel
Save