You are here

function hosting_wizard_provision_web_submit in Hosting 5

Save the changes to the default web server node

File

./hosting.wizard.inc, line 330

Code

function hosting_wizard_provision_web_submit($form_id, $values) {
  $node = node_load(HOSTING_OWN_WEB_SERVER);
  $node->title = $values['title'];
  $node->ip_address = $values['ip_address'];
  $node->script_user = $values['script_user'];
  $node->web_group = $values['web_group'];
  $node->restart_cmd = $values['restart_cmd'];
  node_save($node);
}