Closed (fixed)
Project:
Webform
Version:
7.x-3.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2012 at 03:39 UTC
Updated:
13 May 2012 at 04:22 UTC
In webform 2.x I use $node->webform[additional_emails] to add additional emails on the fly (dynamically).
Can I still use this in webform 3.x?
If I create a custom module, which routine can I use access this variable and modify the value? Thanks!
Comments
Comment #1
quicksketchYou can add custom e-mails to a Webform by added onto $node->webform['emails'] in hook_node_load(), though that could have some odd side-effects since users would be able to edit the configuration of those e-mails in the UI. So if you only want those e-mails to exist at the time an submission is sent, you'd be better off adding on those e-mails through hook_form_alter() on the webform_client_form and modifying the $form['#node'].
Comment #2
quicksketchOn a further note, the submission guidelines state that "how do I code..." questions are not supported in the Webform issue queue, so you'll probably need to take it from here. Though any solution you find would be great to post here for others to find.
Comment #3
quicksketch