domain_form_validate

Versions
domain
domain_form_validate($form, &$form_state)

Implement domain_form validate hook.

Code

./domain.admin.inc, line 493

<?php
function domain_form_validate($form, &$form_state) {
  $subdomain = $form_state['values']['subdomain'];
  $domain_changed = (bool) strcmp($form_state['values']['subdomain'], $form['domain']['subdomain']['#default_value']);
  if ($domain_changed) {
    $error_list = domain_validate($subdomain);
    foreach ($error_list as $error) {
      form_set_error('subdomain', $error);
    }
  }
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List