I am currently trying to use Questions module. However, default configuration doesn't fit my needs as textarea for asking a question is vast for my needs. Default output seems like:
Code: Select all
<textarea name="m8input_question" cols="80" rows="15"></textarea>
So I changed function CreateTextArea() in fuction.default_form.php to:
Code: Select all
CreateTextArea(false,$id,'','input_question','','','',30,30));
I think it's very strange, when parameter for rows number is named cols. According to my experience, it really works like cols, not like rows parameter.CreateTextArea (line 1623)
Returns the xhtml equivalent of a textarea. Also takes WYSIWYG preference into consideration if it's called from the admin side.
void CreateTextArea (bool $enablewysiwyg, string $id, string $text, string $name, [string $classname = ''], [string $htmlid = ''], [string $encoding = ''], [string $stylesheet = ''], [string $width = '80'], [string $cols = '15'], [string $forcewysiwyg = ""])
* bool $enablewysiwyg: Should we try to create a WYSIWYG for this textarea?
* string $id: The id given to the module on execution
* string $text: The text to display in the textarea's content
* string $name: The html name of the textarea
* string $classname: The CSS class to associate this textarea to
* string $htmlid: The html id to give to this textarea
* string $encoding: The encoding to use for the content
* string $stylesheet: The text of the stylesheet associated to this content. Only used for certain WYSIWYGs
* string $width: The number of characters wide (columns) the resulting textarea should be
* string $cols: The number of characters high (rows) the resulting textarea should be
* string $forcewysiwyg: The wysiwyg-system to be forced even if the user has chosen another one
Can you explain me this strangeness and help to set number of rows?
Thanks in advance,
Milhaus