17 Jun
2007
17 Jun
'07
2:05 p.m.
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! ;-)
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