drupal - Programmatically change the submitter user in the webform module -


i automatically create users visitors submit webforms per http://www.mikewagan.net/2010/10/drupal-create-user-accounts-through-the-webform-module/

this works fine, 1 little problem: webform submission data should changed represent correct submitter (my newly created user), tied unauthenticated user.

i tried $form['details']['uid']['#value'] = $account->uid; in additional processing field, not seem work.

which part of webform's submission data have massage make happen?

my suggestion perform hook_nodeapi , , edit submitter inside node right before created.

check states nodeapi gives here:

http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_nodeapi/6


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -