[drupal-devel] What does #post_process do?
In http://drupal.org/node/35575 Karoly suggested that the form needs a #post_process. The only documentation I can find about #post_process is "This also introduces the #post_process property, which allows you to change the form based on stuff that has been submitted." Well, this bug doesn't require the form to be changed. It just needs to read a field from the form. So I don't see why or how #post_process can be used here. Anyone care to share some wisdom? ...Richard.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05 Nov 2005, at 12:14 PM, Richard Archer wrote:
Well, this bug doesn't require the form to be changed. It just needs to read a field from the form. So I don't see why or how #post_process can be used here.
Post process is used to make alterations to the form, after the form has already been processed. Use 1: Node Preview. We can't display unfiltered data to the user from the _POST, so we have a post_process on the node form which adds the node_preview form element using the already filtered values. Use 2 : Image module. There's a similar use case for the image module too, although james might know better. - -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDbKYAgegMqdGlkasRAqIGAKCcKsnj5L/elUgU+2r+/tRcZ3WWVwCgr4xW benzowZnK5hvpfeRmFlI6nY= =BuMG -----END PGP SIGNATURE-----
participants (2)
-
Adrian Rossouw -
Richard Archer