1 installer.manager.inc installer_manager_install_form_submit($form, &$form_state)

Form submission handler for installer_manager_install_form().

Related topics

File

core/modules/installer/installer.manager.inc, line 767
Administrative screens and processing functions of the Installer module.

Code

function installer_manager_install_form_submit($form, &$form_state) {
  if (!empty($form_state['projects'])) {
    foreach ($form_state['projects'] as $project) {
      installer_browser_install_queue_add($project);
    }
    $form_state['redirect'] = 'admin/installer/install/select_versions';
  }
  else {
    $return = installer_manager_download_project($form_state['values']['project_url']);
    if (empty($return['success'])) {
      form_set_error('project_url', $return['message']);
    }
    if (!empty($return['redirect'])) {
      $form_state['redirect'] = $return['redirect'];
    }
  }
}