function _hosting_signup_form_populate in Hosting 5
Populate hosting site node form element with specified arguments
This function does a drupal_http_request to the existing form_populate callbacks and passes through the information from there.
1 string reference to '_hosting_signup_form_populate'
- hosting_signup_menu in signup/
hosting_signup.module - Implementation of hook_menu
File
- signup/
hosting_signup.module, line 117 - Provides a signup form that can be run on remote sites
Code
function _hosting_signup_form_populate($element, $value, $value2 = null) {
$path = "/hosting/hosting_site_form_populate/{$element}/{$value}" . ($value2 ? "/{$value2}" : "");
$request = drupal_http_request(_hosting_signup_get_url($path));
print $request->data;
exit;
}