[development] FAPI and _display hook

Graeme McKibbin gmckibbin at iburst.co.za
Wed Feb 6 20:07:01 UTC 2008


Thank you, I've been looking for that!


On 06 Feb 2008, at 9:59 PM, Oleg Terenchuk wrote:

> Graeme, please refer to the Forms API Quickstart Guide : http:// 
> api.drupal.org/api/file/developer/topics/forms_api.html/5
>
> On 2/6/08, Graeme McKibbin <gmckibbin at iburst.co.za> wrote:
> Not sure if I'm on the same page as you, but I need to have a form  
> that has some input fields and a submit button, and when it's  
> clicked, the form passes the input to itself (or another page) and  
> then displays a table of results from a query (that I've created).  
> Any idea?
>
>
> On 06 Feb 2008, at 8:59 PM, Ivan Sergio Borgonovo wrote:
>
>> Maybe there is a clean way to recycle most of FAPI if you don't need
>> to save anything in _submit but if you'd just like to produce some
>> output based on form input?
>>
>> eg. you've 2 fields and the form "landing" page should display the
>> product (the landing page may still be the form path itself).
>>
>> If there is such a technique that let you intercept $form_values and
>> $form_id outside _submit _validate and display output accordingly I'd
>> be glad to know.
>>
>> Otherwise I'd really enjoy to see a _display hook that in spite of
>> showing the form or redirecting somewhere else would just have access
>> to $form_id  and $form_values as _validate and _submit but would
>> output something else other than the form.
>>
>>
>> -- 
>> Ivan Sergio Borgonovo
>> http://www.webthatworks.it
>>
>
>
>
>
> Kind Regards
>
> Graeme McKibbin
> Software Developer
>
>
>
>
>
>
> -- 
> Oleg Terenchuk
> Web Manager / Developer
> Phone: 917 - 306 - 5653





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20080206/38a87ce4/attachment-0001.htm 


More information about the development mailing list