From 3563734b2cf4ac681d6f980873ee0c999afb0c33 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 26 Jul 2017 11:04:07 +0200 Subject: [PATCH] Better description for password --- modules/genpass/genpass.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/genpass/genpass.module b/modules/genpass/genpass.module index 5aa03bc..0bef235 100644 --- a/modules/genpass/genpass.module +++ b/modules/genpass/genpass.module @@ -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') . ': ' . htmlentities(module_invoke($module, 'password')) . ', ' . htmlentities(module_invoke($module, 'password')) . ')'; } return $return; -} \ No newline at end of file +} +