Commit bb617655 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

fix default for db server info

parent 6b912cda
......@@ -52,6 +52,9 @@ function provision_mysql_provision_service() {
* Implementation of provision_configure
*/
function provision_mysql_provision_configure($node = null) {
if (!is_object($node) && ($nid = variable_get('hosting_own_db_server', 0))) {
$node = node_load($nid);
}
$form['db_type'] = array('#type' => 'hidden', '#value' => 'mysql');
$form['db_host'] = array(
......@@ -63,14 +66,6 @@ function provision_mysql_provision_configure($node = null) {
'#maxlength' => 64,
);
$form['ip_address'] = array(
'#type' => 'textfield',
'#title' => t('IP address'),
'#default_value' => $node->ip_address,
'#size' => 15,
'#maxlength' => 15,
'#description' => t("The IP address the server can be accessed by.<br />If this is empty, the hostname will be used instead.")
);
$form['db_user'] = array(
'#type' => 'textfield',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment