[drupal-devel] [feature] 2 additional hooks to form_textarea to support module writers who are extending it.

Julian Bond julian_bond at voidstar.com
Sun Mar 6 08:03:23 UTC 2005

jbond <drupal-devel at drupal.org> Sat, 5 Mar 2005 11:00:26
>This patch is for common.inc function form_textarea(). It adds two
>additional hooks for module writers.
>1) A new hook "post-title" which works the same as "pre" and "post" but
>allows html to be inserted between the title of the element and the
>textarea. This makes it easier to insert a row of buttons (say) that
>sit just on top of the textarea.
>2) A new hook "attributes" which takes an array() from modules that
>provide it and merges it into the $attributes array for the textarea.
>Wysywig editors typically need to add javascript handlers for things
>like onClick and this provides a simple way for the module to add them.

This was a first attempt (this year!) to post a patch. Please let me 
know if I screwed up.

Julian Bond Email&MSM: julian.bond at voidstar.com
Webmaster:                 http://www.ecademy.com/
Personal WebLog:          http://www.voidstar.com/
M: +44 (0)77 5907 2173      T: +44 (0)192 0412 433
S: callto://julian.bond/

More information about the drupal-devel mailing list