function hosting_signup_get_form in Hosting 5
XMLRPC function to retrieve the form
A simple function that builds the form on the remote site and sends the structured array back over the line to the local site
2 calls to hosting_signup_get_form()
- hosting_signup_submit_form in signup/
hosting_signup.module - XMLRPC method for submitting a form
- hosting_signup_validate_form in signup/
hosting_signup.module - XMLRPC method for validating the form
2 string references to 'hosting_signup_get_form'
- hosting_signup_menu in signup/
hosting_signup.module - Implementation of hook_menu
- hosting_signup_xmlrpc in signup/
hosting_signup.module - Implementation of hook_xmlrpc
File
- signup/
hosting_signup.module, line 185 - Provides a signup form that can be run on remote sites
Code
function hosting_signup_get_form($server_key, $post = array()) {
if ($server_key != variable_get('hosting_signup_server_key', '')) {
$form['error'] = array(
'#type' => 'item',
'#value' => t("The signup form has not been correctly configured"),
);
}
else {
$form = drupal_retrieve_form('_hosting_signup_form');
unset($form['#token']);
}
return $form;
}