Download & Extend

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

Project:Maxlength
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

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

Comments

#1

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

#2

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.

nobody click here