Does not work with embedded forms
davidlerin - January 8, 2009 - 07:48
| Project: | Maxlength |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Thanks for a great module. I've installed it, and set it to limit my nodecomment body textarea to 300 characters. When I go to content->create content->nodecomment everything works great, with the character limit showing up as desired. However, when I embed the nodecomment creation form on a page with the following line of code, no character limit appears (though the form shows up just as expected, and looks pretty much the same as when going to the node creation page).
print $comment_form = nodecomment_form($node);Any help with this would be much appreciated!

#1
mh
The problem is the old 1.x version
It checks for arg(1) in the extra theme_textarea function, i especially don't like this how this is handled.
perhaps there is a workaround
this is solved in the 2.x branch, AFAIK