function hosting_signup_submit_form in Hosting 5
XMLRPC method for submitting a form
This function runs on the remote site, pulls th eform definition and processes the submitted form
Return value
An associative array containing both the site and client records created as arrays
1 string reference to 'hosting_signup_submit_form'
- hosting_signup_xmlrpc in signup/
hosting_signup.module - Implementation of hook_xmlrpc
File
- signup/
hosting_signup.module, line 264 - Provides a signup form that can be run on remote sites
Code
function hosting_signup_submit_form($server_key, $values = array()) {
$form = hosting_signup_get_form($server_key, $values);
$form['#post'] = $values;
drupal_prepare_form('_hosting_signup_form', $form);
drupal_process_form('_hosting_process_form', $form);
return hosting_signup_singleton();
}