You are here

function hosting_signup_form_validate in Hostmaster (Aegir) 6

Form validation

This is the validation that the form does.

File

modules/hosting/signup/hosting_signup.module, line 94
Provides a signup form that can be run on remote sites

Code

function hosting_signup_form_validate($form, &$form_state) {
  $client = (object) $form_state['values'];
  $client->type = 'client';
  $client->title = $client->client_name;
  node_validate($client);
  $site = (object) $form_state['values'];
  $site->type = 'site';
  node_validate($site);
}