[development] multistep form with Drupal 6

Larry Garfield larry at garfieldtech.com
Sat Apr 5 05:36:27 UTC 2008


I believe Khalid is referring to the node hook_submit, which was formerly of 
node pseudo-hooks like $nodename_load, $nodename_form, etc.  Those are called 
hooks, which is really inaccurate and misleading.  

You're referring to the submit handler callback of a form, which is also *not* 
properly a hook.  

The word hook really is overused these days. :-)  Not all indirect function 
calls are hooks.  They're all callbacks, but not hooks.

On Friday 04 April 2008, Feijó wrote:
> Realy? I'm using it with success
>
> I understand that if I dont inform another #submit, myfunction_submit
> will be evoked
>
> And thats what happen here.  My problem is with my form function, not
> the submit.
>
> I'm not using nodes
>
>
> Feijó
>
> Khalid Baheyeldin escreveu:
> > hook_submit() is gone in Drupal 6.
> >
> > http://drupal.org/node/114774#hook_submit
> >
> > On Fri, Apr 4, 2008 at 12:32 PM, Feijó <patrao at legendas.feijo.info
> > <mailto:patrao at legendas.feijo.info>> wrote:
> >
> >     I've been reading, searching, studing a lot about FAPI changes from
> >     5 to 6
> >
> >     The #multistep is gone! That scared me :)
> >
> >     My form function module_fase1($form_state)
> >
> >     doesnt get $form_state populated after a submit!! The hook_submit
> > does.
> >
> >     What am I missing? I need my data back on my form function to build
> >     next steps
> >
> >
> >     Thanks in advance
> >     Feijó
> >
> >
> >
> > --
> > Khalid M. Baheyeldin
> > 2bits.com <http://2bits.com>, Inc.
> > http://2bits.com
> > Drupal optimization, development, customization and consulting.


-- 
Larry Garfield			AIM: LOLG42
larry at garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson


More information about the development mailing list