function hosting_signup_form in Hosting 5
Same name and namespace in other branches
- 6.2 signup/hosting_signup.module \hosting_signup_form()
- 7.4 signup/hosting_signup.module \hosting_signup_form()
- 7.3 signup/hosting_signup.module \hosting_signup_form()
Form callback for signup form
This function connects to the xmlrpc method on the master server to retrieve the form to be generated.
Replaces the remote form's validation and submission callbacks with local callbacks, that in turn contact the remote form to validate / process the form.
1 string reference to 'hosting_signup_form'
- hosting_signup_menu in signup/
hosting_signup.module - Implementation of hook_menu
File
- signup/
hosting_signup.module, line 169 - Provides a signup form that can be run on remote sites
Code
function hosting_signup_form() {
drupal_add_js(drupal_get_path('module', 'hosting_signup') . '/hosting_signup_form.js');
$form = xmlrpc(_hosting_signup_get_url(), 'hosting_signup.getForm', _hosting_signup_get_key(), $_POST);
$form['#action'] = '/hosting/signup';
$form['#submit'] = array(
'hosting_signup_form_submit' => array(),
);
$form['#validate'] = array(
'hosting_signup_form_validate' => array(),
);
return $form;
}