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;
}

Comments

sun’s picture

Assigned: off » Unassigned
Status: Active » Postponed (maintainer needs more info)

and?

off’s picture

The 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?

off’s picture

sorry, my english very bad

sun’s picture

Version: 5.x-1.0 » 5.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new603 bytes

Please test attached patch.

off’s picture

all ok

sun’s picture

Status: Needs review » Reviewed & tested by the community
sun’s picture

Status: Reviewed & tested by the community » Needs work

I'd like to turn this textfield into a textarea, also allowing markup and longer guestbook owner replies.
Any objections?

sun’s picture

Status: Needs work » Fixed
StatusFileSize
new3.39 KB

Attached patch turned the owner comment form into a textarea, allowing to use HTML markup if desired.
This is 2.x stuff only.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.