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