128 char is short for admin comment
function guestbook_form_comment_form($uid, $entry) {
$form = array();
$form['comment'] = array(
'#type' => 'textfield',
'#default_value' => check_plain($entry['comment']),
'#size' => 64,
'#maxlength' => 1000);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Comment'));
$form['entry_id'] = array('#type' => 'value', '#value' => $entry['id']);
$form['uid'] = array('#type' => 'value', '#value' => $uid);
return $form;
}
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | guestbook-DRUPAL-5--2.owner-comment.patch | 3.39 KB | sun |
| #4 | guestbook-DRUPAL-5.comment-length.patch | 603 bytes | sun |
Comments
Comment #1
sunand?
Comment #2
off commentedThe opportunity to leave the admin comment long in 1000 symbols is necessary to us.
I have changed a code this line:
from
'#maxlength' => 128);
to
'#maxlength' => 1000);
in guestbook_form_comment_form function
I can count on support of such length of the admin comment in the next versions of the module?
Comment #3
off commentedsorry, my english very bad
Comment #4
sunPlease test attached patch.
Comment #5
off commentedall ok
Comment #6
sunComment #7
sunI'd like to turn this textfield into a textarea, also allowing markup and longer guestbook owner replies.
Any objections?
Comment #8
sunAttached patch turned the owner comment form into a textarea, allowing to use HTML markup if desired.
This is 2.x stuff only.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.