16 Jun
2007
16 Jun
'07
8:04 p.m.
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. -Dave