summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-03-16 22:14:15 +0000
committerDries Buytaert <dries@buytaert.net>2005-03-16 22:14:15 +0000
commit332a56334d0941aa40c12bfb605888c8df5cc67b (patch)
tree35390166d30a843799192ddeb9ffefb8bde8d22d /modules/comment.module
parent9e32e74e66527d647fd979de5af51cfbd6d212b9 (diff)
downloadbrdo-332a56334d0941aa40c12bfb605888c8df5cc67b.tar.gz
brdo-332a56334d0941aa40c12bfb605888c8df5cc67b.tar.bz2
- Patch #17161 by Morbus: increase 40-character limit in URL field for comments.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/comment.module b/modules/comment.module
index f06b87f31..fab1a1f47 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -922,9 +922,9 @@ function comment_admin_edit($cid) {
if ($comment) {
if (!$comment->uid) {
// If comment from non-registered user, allow admin to modify anonymous fields.
- $form .= form_textfield(t('Name'), 'name', $comment->name ? $comment->name : variable_get('anonymous', 'Anonymous') , 20, 40);
- $form .= form_textfield(t('E-mail'), 'mail', $comment->mail, 20, 40);
- $form .= form_textfield(t('Homepage'), 'homepage', $comment->homepage, 20, 40);
+ $form .= form_textfield(t('Name'), 'name', $comment->name ? $comment->name : variable_get('anonymous', 'Anonymous') , 20, 60);
+ $form .= form_textfield(t('E-mail'), 'mail', $comment->mail, 20, 64);
+ $form .= form_textfield(t('Homepage'), 'homepage', $comment->homepage, 20, 255);
}
else {
// Otherwise, just display the author's name.
@@ -1386,14 +1386,14 @@ function theme_comment_form($edit, $title) {
$form .= form_item(t('Your name'), format_name($user));
}
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, 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);
+ $form .= form_textfield(t('Your name'), 'name', $edit['name'] ? $edit['name'] : variable_get('anonymous', 'Anonymous') , 20, 60);
+ $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 64, t('The content of this field is kept private and will not be shown publicly.'));
+ $form .= form_textfield(t('Homepage'), 'homepage', $edit['homepage'], 20, 255);
}
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, 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);
+ $form .= form_textfield(t('Your name'), 'name', $edit['name'] ? $edit['name'] : variable_get('anonymous', 'Anonymous') , 20, 60, NULL, NULL, TRUE);
+ $form .= form_textfield(t('E-mail'), 'mail', $edit['mail'], 20, 64, 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, 255);
}
// subject field: