1 installer.browser.inc | installer_browser_add_remove_queue_dialog_link_submit($form, &$form_state) |
Submit handler for installer_browser_add_remove_queue_dialog_link().
File
- core/
modules/ installer/ installer.browser.inc, line 566 - Various functions that are required by the Installer browse pages.
Code
function installer_browser_add_remove_queue_dialog_link_submit($form, &$form_state) {
// Save the current add/remove value.
$form_state['redirect'] = installer_browser_install_queue_callback('form', $form_state['op'], $form_state['project_name']);
// Rebuild the form with the new opposite action selected.
if ($form_state['op'] == 'add') {
$form_state['op'] = 'remove';
$form_state['title'] = t('Remove from Installation queue');
}
else {
$form_state['op'] = 'add';
$form_state['title'] = t('Add to Installation queue');
}
$form_state['rebuild'] = TRUE;
}