So i created my custom module form and submit handler...then realized i needed to use Webform hooks to save and hopefully view. Basically i wish for webform to manage the heavy lifting by taking care of the save and submissions.. also is it possible to save the values from the form as nodes or send them as emails? please any help is appreciated iv been staring at the webform API for days..
1 Answer
Webform has nothing to do with your form if you created it in a module.Your form is a form not a webform type node. Form API! reference is what you need and to install Devel module
Then
dpm($form)
inside your form builder function to check which function is your #submit which is your #validate and add[] your own if you like
form values are stored in $form_state array dpm($form_state) it also in your submit function and do whatever you want with these submitted values.
Store them in drupal database using variable_set() , mail them using drupal_mail() etc.
Some links
http://drupal.org/node/717740 http://api.drupal.org/api/examples/form_example%21form_example_tutorial.inc/7