By gr8cms on
Hi
How many forms can I define in an module?
I have a form that users can fill it and submit, then in other form admin can see users submited and then do submit.
I have 2 form, so I need 2 different functions to do.
I'm using mymodule1_form() and mymodule1_form_submit() for the first form.
For the second form I have mymodule2_form(), but I don't know which function have to call.
Please help me,
Thanks in advance
Comments
use hook_forms
use hook_forms instead
http://api.drupal.org/api/function/hook_forms/6
As example you can see the code of "Google Custom Search" module or "Search" module.
--
Qasim Zeeshan
http://qasimzeeshan.com
You can have as many forms as
You can have as many forms as you want. It sounds like you need to register some paths using hook_menu() so that you have a URL at which to access the form.
Contact me to contract me for D7 -> D10/11 migrations.
Thank you, How can I call a
Thank you,
How can I call a function in submit form?
Give me an example, please.
http://drupal.org/node/206753
http://drupal.org/node/206753
Contact me to contract me for D7 -> D10/11 migrations.