You are here

function install_settings_form_submit in Drupal 5

Same name and namespace in other branches
  1. 6 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 364

Code

function install_settings_form_submit($form_id, $form_values) {
  global $profile, $install_locale;

  // Update global settings array and save
  $settings['db_url'] = array(
    'value' => $form_values['_db_url'],
    'required' => TRUE,
  );
  $settings['db_prefix'] = array(
    'value' => $form_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}" : ''));
}