[development] #pre_render - forms only?
gordon at heydon.com.au
Sat Jun 16 20:57:13 UTC 2007
This was removed from HEAD, but I have a patch pending which adds this
Dave Cohen wrote:
> Now that the data structures developed for forms are being used for other data
> structures, particularly nodes, is there any reason why the #pre_render
> callback is available only in forms?
> I suggest moving the code that calls #pre_render callbacks from
> drupal_render_form() into drupal_render().
> In particular I would like to add #pre_render hooks in my hook_view, so that I
> can tweak the node's content structure before it gets themed. Right now I
> see no reliable way to do this, short of making a special module with a very
> heavy weight so that it's nodeapi hooks are guaranteed to be called last.
> If there is positive feedback to this suggestion, I will submit patches for
> drupal-5.x and head. Thanks.
More information about the development