You are here

function hosting_wizard_provision_db_submit in Hosting 5

Save the modified db_server

File

./hosting.wizard.inc, line 382

Code

function hosting_wizard_provision_db_submit($form_id, $values) {
  $node = node_load(HOSTING_OWN_DB_SERVER);
  $node->title = $values['title'];
  $node->db_user = $values['db_user'];
  if ($values['db_passwd']) {
    $node->db_passwd = $values['db_passwd'];
  }
  node_save($node);
}