domain_configure_form_validate($form, &$form_state)Validate the primary domain string.
./domain.admin.inc, line 352
<?php
function domain_configure_form_validate($form, &$form_state) {
if ($form_state['values']['op'] == $form_state['values']['reset']) {
$subdomain = strtolower(rtrim($_SERVER['SERVER_NAME']));
}
else {
$subdomain = $form_state['values']['domain_root'];
}
$domain_changed = (bool) strcmp($form_state['values']['domain_root'], $form['domain']['domain_root']['#default_value']);
if ($domain_changed) {
$error_list = domain_validate($subdomain);
foreach ($error_list as $error) {
form_set_error('domain_root', $error);
}
}
}
?>