Closed (outdated)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2020 at 20:09 UTC
Updated:
23 Sep 2025 at 14:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
guilhermevp commentedI was implementing the requested solution when I notice that drupal 7 has an built in option for deletion of all data upon removal of user. Don't know if I understood the request correctly, but seems to me an unecessary feature.
Comment #3
damienmckennaThat option in core deletes nodes, but I don't see any integration in Webform for deleting submission data, hence the request.
Comment #4
guilhermevp commentedThe only way it seems possibile to remove all submited data from removed user, is to add an indentifier in the webform_submitted_data table, but it seems to be a intrusive change. Is it correct?
Comment #5
guilhermevp commentedComment #6
guilhermevp commentedSo, if I understood you correctly you want a toggleable option to delete all user data when said user is deleted.
So I implemented a menu option under advanced configurations of webform. When the option is checked everything from
webform_submissionsandweboform_submitted_datais deleted.Comment #7
guilhermevp commentedComment #8
nishat ahmad commentedI have check #6 and It's working fine for me.
Comment #9
liam morlandThanks for the patch.
I think webform_user_delete() should always exist and have the check for variable
webform_delete_user_datainside the function. Otherwise, changing the variable will require a cache clear for the hook to become effective.Please post the patch in an issue fork. Let me know if you need any help with this.
Comment #11
guilhermevp commented@Liam Morland
Can you review my patch?
I 'm not sure if the failed test is related with my submission.
Comment #12
liam morlandI don't think the test failures are caused by your patch.
Please check your coding standards. There are automated test tools.
Comment #13
guilhermevp commentedThanks for the feedback! I'll look into it.
Comment #14
liam morlandDrupal 7 is no longer supported. If this applies to a supported version, please re-open.