add comment options and limit on 6.x-1, patch suggestion.

mogtofu - April 2, 2009 - 12:15
Project:Maxlength
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Hi,
I need some options for comments on Drupal 6, so i just made some changes to add comment limit and options.
Options usefull when you set a small limit, so you can disable resizable function on textaera and set custom rows and cols.

here is my suggestion.

waiting for a 6.x-2 release to make an other patch.

regards.

AttachmentSize
maxlength.module.diff4.72 KB

#1

mogtofu - April 2, 2009 - 12:20

Sorry, just forgot a point, it works when comment form is on an other page, not under node.

#2

dereine - April 3, 2009 - 14:52
Status:active» needs work

there are some strange here: a lot of spaces/tabs, false instead of FALSE

if($resizable != 1) {
+ $form['comment_filter']['comment']['#resizable'] = false ;
+ if ($rows > 0) {
+ $form['comment_filter']['comment']['#rows'] = $rows;
+ }
+ if ($cols > 0) {
+ $form['comment_filter']['comment']['#cols'] = $cols;
+ }
+ }
+  }

Additional you add resizable this shouldn't be part of the patch, it does not matter for this module i think.

 
 

Drupal is a registered trademark of Dries Buytaert.