Closed (fixed)
Project:
Guestbook
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
1 Mar 2007 at 21:28 UTC
Updated:
16 Mar 2007 at 21:31 UTC
If working with TinyMCE and the full configured toolbars in the editor the textareas are to small to insert text by default, you have to resize the textarea.
This codings will extend the textareas:
in guestbook.module
at line 116 replace
$form['guestbook']['guestbook_intro'] = array(
'#type' => 'textarea',
'#title' => t('Intro text'),
'#default_value' => $edit['guestbook_intro'],
'#cols' => 70,
'#rows' => 5,
'#description' => t('The text that appears on top of your guestbook.'));
with
$form['guestbook']['guestbook_intro'] = array(
'#type' => 'textarea',
'#title' => t('Intro text'),
'#default_value' => $edit['guestbook_intro'],
'#cols' => 70,
'#rows' => 8,
'#description' => t('The text that appears on top of your guestbook.'));
at line 182
replace
$form['site_guestbook']['guestbook_site_intro'] = array(
'#type' => 'textarea',
'#title' => t('Intro text'),
'#default_value' => variable_get('guestbook_site_intro', ''),
'#cols' => 70,
'#rows' => 5,
'#description' => t('The text that appears on top of the site guestbook.'));
$form['site_guestbook']['guestbook_site_intro'] = array(
'#type' => 'textarea',
'#title' => t('Intro text'),
'#default_value' => variable_get('guestbook_site_intro', ''),
'#cols' => 70,
'#rows' => 8,
'#description' => t('The text that appears on top of the site guestbook.'));
at line 391
replace
$form['message'] = array(
'#type' => 'textarea', '#title' => t('Message'),
'#cols' => 32, '#rows' => 5, '#description' => $filter_tips, '#required' => TRUE);
with
$form['message'] = array(
'#type' => 'textarea', '#title' => t('Message'),
'#cols' => 32, '#rows' => 8, '#description' => $filter_tips, '#required' => TRUE);
Comments
Comment #1
hba commentedFix commited to 5.x CVS.
Comment #2
JumpingJack@drupalcenter.de commentedthank you
Comment #3
(not verified) commented