You are here

function domain_create_form_validate in Domain Access 5

FormsAPI for domain_create_form()

File

./domain_admin.inc, line 476
Administration functions for the domain module.

Code

function domain_create_form_validate($form_id, $form_values) {

  // TODO: Make this a proper regex?
  $subdomain = strtolower($form_values['subdomain']);
  $error_list = domain_validate($subdomain);
  foreach ($error_list as $error) {
    form_set_error('subdomain', $error);
  }
}