[development] development Digest, Vol 88, Issue 36

Anth malkouna at yahoo.com.au
Wed Apr 28 13:07:30 UTC 2010

I think you'd do it with a hook_form_alter... set maxlength in the hook 
based on your roles.

On 28/04/2010 10:00 PM, development-request at drupal.org wrote:
> Message: 1
> Date: Tue, 27 Apr 2010 09:49:01 -0600
> From: Karyn Cassio<karyn at karyncassio.com>
> Subject: [development] Character limit on body textarea
> To:development at drupal.org
> Message-ID:<4BD7076D.90404 at karyncassio.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Good day Drupal Devs,
> I have an issue where I need to set a character limit on a content's
> body_field. I found maxlength, which is great, unfortunately it isn't
> everything I need since this is a per role situation. Some roles would
> have a limit, others unlimited.
> Has anyone successfully been able to apply an alter to the maxlength
> module to have it work for specific roles only?
> Thanks,
> -- Karyn

More information about the development mailing list