function hosting_signup_form_validate in Hosting 6.2
Same name and namespace in other branches
- 5 signup/hosting_signup.module \hosting_signup_form_validate()
- 7.4 signup/hosting_signup.module \hosting_signup_form_validate()
- 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 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);
}