Better description for password
This commit is contained in:
parent
ff1286a8e8
commit
3563734b2c
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||||
|
@ -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[$module] = $module . ' (' . t('examples') . ': <strong>' . htmlentities(module_invoke($module, 'password')) . '</strong>, <strong>' . htmlentities(module_invoke($module, 'password')) . '</strong>)';
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue