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

nicola.peluchetti’s picture

I'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?

quicksketch’s picture

Status: Active » Closed (won't fix)

I 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.