Better description for password

This commit is contained in:
Manuel Cillero 2017-07-26 11:04:07 +02:00
parent ff1286a8e8
commit 3563734b2c

View file

@ -161,7 +161,7 @@ function genpass_form_alter(&$form, $form_state, $form_id) {
// indication of what will happen if left blank // indication of what will happen if left blank
case GENPASS_OPTIONAL: case GENPASS_OPTIONAL:
$pass_item['#required'] = FALSE; $pass_item['#required'] = FALSE;
$pass_item['#description'] .= (empty($pass_item['#description']) ? '' : $pass_item['#description'] . ' ') . t('If left blank, a password will be generated for you.'); $pass_item['#description'] = (empty($pass_item['#description']) ? '' : $pass_item['#description'] . ' ') . t('If left blank, a password will be generated for you.');
break; break;
// If password is restricted, remove access // If password is restricted, remove access
case GENPASS_RESTRICTED: case GENPASS_RESTRICTED:
@ -277,3 +277,4 @@ function genpass_add_samples($array) {
} }
return $return; return $return;
} }