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
case GENPASS_OPTIONAL:
$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;
// If password is restricted, remove access
case GENPASS_RESTRICTED:
@ -276,4 +276,5 @@ function genpass_add_samples($array) {
$return[$module] = $module . ' (' . t('examples') . ': <strong>' . htmlentities(module_invoke($module, 'password')) . '</strong>, <strong>' . htmlentities(module_invoke($module, 'password')) . '</strong>)';
}
return $return;
}
}