You are here

function _hosting_signup_form_validate in Hosting 5

Remote form validation

This is the actual validation that the remote form does. It sets any form errors into the hosting_signup_singleton so they can be propogated to the local site.

File

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

Code

function _hosting_signup_form_validate($form_id, $values) {
  $client = (object) $values;
  $client->type = 'client';
  $client->title = '';
  node_validate($client);
  $site = (object) $values;
  $site->type = 'site';
  node_validate($site);
  hosting_signup_singleton(form_get_errors());
}