I'm asking this question as a possible way to handle another issue I possted about ("Moving webform uploads to a non-public folderspace"). Is there a hook_function that I can use to handle the submission of a webform in Drupal 6. That is, can I use a hook
to relocate a file uploaded through a webform and update the database entry to mark that upload files new place?
Add a comment
|
1 Answer
Take a look at these three hooks.
- hook_webform_submission_presave() - which is called before saving.
hook_webform_submission_update() - which is called after the submission is stored in database
hook_webform_submission_actions() - which provides a list of actions that can be executed on a submission.