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.

CommentFileSizeAuthor
maxlength.module.diff4.72 KBmogtofu

Comments

mogtofu’s picture

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

dawehner’s picture

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.

cedewey’s picture

Issue summary: View changes
Status: Needs work » Closed (works as designed)

The Drupal 6 version of Maxlength is no longer supported so I'm marking this Closed (works as designed).

I also encourage you, if you haven't already, to upgrade your site to Drupal 8/9. We are actively maintaining that version and you would enjoy all of the other features of the latest version of Drupal.