node_import and forms - some questions (Was: [drupal-devel]
Orphaning the node_import module)
Karoly Negyesi
karoly at negyesi.net
Sat Nov 5 19:38:27 UTC 2005
On Fri, 04 Nov 2005 11:38:08 +0100, Robrecht Jacques <robrechtj at gmail.com>
wrote:
> Forgot one question:
>
> 4. If I use a [form_id]_execute function, how do I know which button
> on the form was pushed? Am I still supposed to look into $edit['op']?
Yes, looking at $_POST['op'] is fine. Jut look, never store/write it out.
> Or alternatively, how can I attach a different _execute function to
> each submit button, similar to "#valid" ?
ATM you can't.
Regards
NK
More information about the development
mailing list