Commit 1779e5bc authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

add help text to show password has been set

parent bb617655
...@@ -65,7 +65,6 @@ function provision_mysql_provision_configure($node = null) { ...@@ -65,7 +65,6 @@ function provision_mysql_provision_configure($node = null) {
'#default_value' => ($node->db_host) ? $node->db_host : variable_get('provision_db_host', 'localhost'), '#default_value' => ($node->db_host) ? $node->db_host : variable_get('provision_db_host', 'localhost'),
'#maxlength' => 64, '#maxlength' => 64,
); );
$form['db_user'] = array( $form['db_user'] = array(
'#type' => 'textfield', '#type' => 'textfield',
...@@ -76,11 +75,14 @@ function provision_mysql_provision_configure($node = null) { ...@@ -76,11 +75,14 @@ function provision_mysql_provision_configure($node = null) {
'#default_value' => ($node->db_user) ? $node->db_user : variable_get('provision_db_user', 'root'), '#default_value' => ($node->db_user) ? $node->db_user : variable_get('provision_db_user', 'root'),
'#maxlength' => 255, '#maxlength' => 255,
); );
if ($node->db_passwd) {
$passwd_description = t('<strong>You have already set a password for this database server.</strong><br />');
}
$form['db_passwd'] = array( $form['db_passwd'] = array(
'#type' => 'password_confirm', '#type' => 'password_confirm',
'#required' => (variable_get("provision_db_password", TRUE)) ? FALSE : TRUE, '#required' => (variable_get("provision_db_password", TRUE)) ? FALSE : TRUE,
'#title' => t('Mysql user password'), '#title' => t('Mysql user password'),
'#description' => t('The user account that will be used to create new mysql users and databases for new sites'), '#description' => $passwd_description . t('The user account that will be used to create new mysql users and databases for new sites'),
'#size' => 30, '#size' => 30,
'#maxlength' => 64, '#maxlength' => 64,
); );
......
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