(sorry I'm spamming your queue, quicksketch)
Been grinding my gears calling functions to create a submission, and nothing seems to work. I thought for sure this would:
$node=node_load(130);
drupal_execute('webform_client_form',array(),$node,array(),TRUE,FALSE);
Any ideas?
Comments
Comment #1
quicksketchYou might need to add the nid to the client form call. I haven't tested this but it's worth a shot:
Comment #2
lefnire commentedit's weird, both those webform_client_form() and webform_client_form_130() create a row in {webform_submissions}, but neither submissions are available in /node/130/results or /node/130/submissions/71 (71 is the new sid in {webform_submissions}).
Comment #3
lefnire commentedNeeded $form_values['op']='Submit':
Comment #4
manasseh-1 commentedWould you use that after assigning values like the following?
Comment #5
brunodbo@manasseh:
Yep. I just did:
Comment #6
udig commentedHello,
Tried the above on D6. No submission is added (as if the activity didn't take place)
Are there any adjustments for D6 that I am missing?
Thanks.
Comment #7
quicksketchThat code snippet is for Drupal 6. You need to replace "15" with whatever your NID is.
drupal_execute('webform_client_form_15', $form_state, $node, array(), TRUE, FALSE);