Fwd: Re: [development] #just_before_validation ?
prometheus6 at gmail.com
Sun May 21 18:20:32 UTC 2006
It's amazon.module. Pre FormAPI, I would let users retrieve the title of a
product by leaving the field blank and hitting preview. In hook_validate()
I'd attach the results of a product query to the node object. Now I'm
querying Amazon.com in hook_form_validate() and hook_form_submit(). Frankly,
I just added the hook_form_submit() function last night.
At the moment there some terrible hackery in the module and I'm only
recently seeing my way clear to fixing it. I converted it for FAPI when I
actually need to reorganize it.
On 5/21/06, Bèr Kessels <ber at webschuur.com> wrote:
> Op zondag 21 mei 2006 15:14, schreef Earl Dunovant:
> > I think you'll be hacking. I am, until the next version of Drupal
> Just curious: what module do you use this for?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development