install_configure_form_validate

6 install.php install_configure_form_validate($form, &$form_state)
7 install.core.inc install_configure_form_validate($form, &$form_state)
8 install.core.inc install_configure_form_validate($form, &$form_state)

Form API validate for the site configuration form.

File

./install.php, line 1131

Code

function install_configure_form_validate($form, &$form_state) {
  if ($error = user_validate_name($form_state['values']['account']['name'])) {
    form_error($form['admin_account']['account']['name'], $error);
  }
  if ($error = user_validate_mail($form_state['values']['account']['mail'])) {
    form_error($form['admin_account']['account']['mail'], $error);
  }
  if ($error = user_validate_mail($form_state['values']['site_mail'])) {
    form_error($form['site_information']['site_mail'], $error);
  }
}
Login or register to post comments