1 install.core.inc install_settings_form_validate($form, &$form_state)

Form validation handler for install_settings_form().

See also

install_settings_form_submit()

File

core/includes/install.core.inc, line 1018
API functions for installing Backdrop.

Code

function install_settings_form_validate($form, &$form_state) {
  $driver = $form_state['values']['driver'];
  $database = $form_state['values'][$driver];
  $database['driver'] = $driver;

  $form_state['storage']['database'] = $database;
  $errors = install_database_errors($database, $form_state['values']['settings_file']);
  foreach ($errors as $name => $message) {
    form_set_error($name, $message);
  }
}