You are here

function install_settings_form_submit in Drupal 6

Same name and namespace in other branches
  1. 5 install.php \install_settings_form_submit()
  2. 7 includes/install.core.inc \install_settings_form_submit()

Form API submit for install_settings form.

File

./install.php, line 412

Code

function install_settings_form_submit($form, &$form_state) {
  global $profile, $install_locale;

  // Update global settings array and save
  $settings['db_url'] = array(
    'value' => $form_state['values']['_db_url'],
    'required' => TRUE,
  );
  $settings['db_prefix'] = array(
    'value' => $form_state['values']['db_prefix'],
    'required' => TRUE,
  );
  drupal_rewrite_settings($settings);

  // Continue to install profile step
  install_goto("install.php?profile={$profile}" . ($install_locale ? "&locale={$install_locale}" : ''));
}