[development] #pre_render - forms only?

fago nuppla at zites.net
Sun Jun 17 12:05:52 UTC 2007


Am Samstag, den 16.06.2007, 13:54 -0500 schrieb Jeff Eaton:
> No, there's no reason it should be for forms only. In fact there's a  
> patch by gordon in the queue that adds both pre_render and  
> post_render optional callbacks for any drupal_render()'able  
> structure. It's a good patch. +1! ;-)
> 
> http://drupal.org/node/147662

thanks for that interesting pointer.

It's great to see that this is the direction, that drupal takes. I think
this kind of structured arrays can be useful in many cases.
E.g. I've also used them for representing configured conditions and
actions in workflow-ng. So I benefit from the existing element defaults
system and further I got easy rendering with drupal_render() for free!

regards,
fago



More information about the development mailing list