From 2ec787df347c3ff8c812f713a4faf6b4904b1afa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Mar 2005 18:28:21 +0000 Subject: - Patch #18676 by frjo: When anonymuos users are allowed to add comments there are a required e-mail field. This field are, as far as i can see, not shown publicly. A user asked me about this and after confirming that it is not shown publicly I added a description that inform the users of this. I have included a patch that add the description "The content of this field is kept private and will not be shown publicly". This is the same description that is used by the profile module. --- modules/comment.module | 4 ++-- modules/comment/comment.module | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/comment.module b/modules/comment.module index 2735c0ab5..ae6e958b2 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1386,12 +1386,12 @@ function theme_comment_form($edit, $title) { } else if (variable_get('comment_anonymous', 0) == 1) { $form .= form_textfield(t('Your name'), 'name', $edit['name'] ? $edit['name'] : variable_get('anonymous', 'Anonymous') , 20, 40); - $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 40); + $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 40, t('The content of this field is kept private and will not be shown publicly.')); $form .= form_textfield(t('Homepage'), 'homepage', $edit['homepage'], 20, 40); } else if (variable_get('comment_anonymous', 0) == 2) { $form .= form_textfield(t('Your name'), 'name', $edit['name'] ? $edit['name'] : variable_get('anonymous', 'Anonymous') , 20, 40, NULL, NULL, TRUE); - $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 40, NULL, NULL, TRUE); + $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 40, t('The content of this field is kept private and will not be shown publicly.'), NULL, TRUE); $form .= form_textfield(t('Homepage'), 'homepage', $edit['homepage'], 20, 40); } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 2735c0ab5..ae6e958b2 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1386,12 +1386,12 @@ function theme_comment_form($edit, $title) { } else if (variable_get('comment_anonymous', 0) == 1) { $form .= form_textfield(t('Your name'), 'name', $edit['name'] ? $edit['name'] : variable_get('anonymous', 'Anonymous') , 20, 40); - $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 40); + $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 40, t('The content of this field is kept private and will not be shown publicly.')); $form .= form_textfield(t('Homepage'), 'homepage', $edit['homepage'], 20, 40); } else if (variable_get('comment_anonymous', 0) == 2) { $form .= form_textfield(t('Your name'), 'name', $edit['name'] ? $edit['name'] : variable_get('anonymous', 'Anonymous') , 20, 40, NULL, NULL, TRUE); - $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 40, NULL, NULL, TRUE); + $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 40, t('The content of this field is kept private and will not be shown publicly.'), NULL, TRUE); $form .= form_textfield(t('Homepage'), 'homepage', $edit['homepage'], 20, 40); } -- cgit v1.2.3