Closed (won't fix)
Project:
Webform
Version:
7.x-3.11
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2011 at 09:37 UTC
Updated:
6 Jul 2011 at 16:25 UTC
Hi,
i'm using this module so that user can ask for the credentials to login to the site. I need to add a button to the the "view" of each submission so that the user that it's viewing that submission can create a user. What parto of the code should i modify to do that? Do i have to modify the code of the module or can i inject this new behaviour with a module i write?
Comments
Comment #1
nicola.peluchetti commentedI've seen in the code that for example there is this hook:
function hook_webform_submission_load(&$submissions) {
foreach ($submissions as $sid => $submission) {
$submissions[$sid]->new_property = 'foo';
}
}
This means that if i implement a module named modified_webform and implement
function modified_webform_webform_submission_load(&$submissions){
}
i can modified wath i see in the view?
Comment #2
quicksketchI specifically state I do not provide help on custom coding in the Webform queue in the submission guidelines for issues. That said, I'd highly encourage you to try and avoid hacking the Webform module, otherwise you'll find it extremely hard to update to new versions in the future.