function _hosting_signup_form_submit in Hosting 5
Remote form submission
Generates the nodes and saves them into hosting_signup_singleton, so the local submission function can re-act to them.
File
- signup/
hosting_signup.module, line 340 - Provides a signup form that can be run on remote sites
Code
function _hosting_signup_form_submit($form_id, $values) {
$client = (object) $values;
$client->type = 'client';
$client->title = '';
$client->status = 1;
node_save($client, 'submit');
$site = (object) $values;
$site->type = 'site';
$site->status = 1;
$site->client = $client->nid;
node_save($site);
hosting_signup_singleton(array(
'client' => $client,
'site' => $site,
));
}