function hosting_signup_validate_form in Hosting 5
XMLRPC method for validating the form
This prepares and validates the form with the values passed to the xmlrpc method (which are actually $_POST on the local site)
Return value
The result of form_get_errors()
1 string reference to 'hosting_signup_validate_form'
- hosting_signup_xmlrpc in signup/
hosting_signup.module - Implementation of hook_xmlrpc
File
- signup/
hosting_signup.module, line 228 - Provides a signup form that can be run on remote sites
Code
function hosting_signup_validate_form($server_key, $values = array()) {
$form = hosting_signup_get_form($server_key, $values);
$form['#post'] = $values;
drupal_prepare_form('_hosting_signup_form', $form);
drupal_validate_form('_hosting_signup_form', $form);
return hosting_signup_singleton();
}