You are here

function hosting_wizard_account_submit in Hosting 5

Save the user account, and update the default client node

File

./hosting.wizard.inc, line 191

Code

function hosting_wizard_account_submit($form_id, $values) {
  global $user;
  user_save($user, $values);
  $node = node_load(HOSTING_DEFAULT_CLIENT);
  $node->client_name = $values['name'];
  $node->email = $values['mail'];
  node_save($node);
}