Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
my project is to create a site where end-user can create their own surveys
For that, I would like to create a form for the end-user. This form, when filled by the end-user has to generate the survey for the end-user.
Which modules/approach do you think that best fit to this requirement?
Firstly, I was unable to catch the user_cancel_delete method in either of the recommended hooks (hook_ENTITY_TYPE_predelete() and hook_ENTITY_TYPE_delete()).
Then I was unable to find an invoke for either of those hooks in case of user_cancel_delete and noticed that it doesn't enter the user_delete() as well, contradicting the documentation. If I recall correctly, it enters _user_delete() only.