You are here

function hosting_signup_form_validate in Hosting 7.4

Same name and namespace in other branches
  1. 5 signup/hosting_signup.module \hosting_signup_form_validate()
  2. 6.2 signup/hosting_signup.module \hosting_signup_form_validate()
  3. 7.3 signup/hosting_signup.module \hosting_signup_form_validate()

Form validation

This is the validation that the form does.

File

signup/hosting_signup.module, line 102
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, $form, $form_state);
  $site = (object) $form_state['values'];
  $site->type = 'site';
  node_validate($site, $form, $form_state);
}