- Issue created by @claudiu.cristea
Some projects might need to keep the uid-realname record as an artifact of the user being deleted.
A potential use case could be the to show the author real name on content that the deleted user has authored, even the user account has been deleted. We have such a case on one of European Commision projects, where we want to keep the content correctly authored with the real name of the author but we cannot keep the account blocked if they want to cancel because GDPR is not allowing us to store user data against their consent. But I can imagine many other cases.
Even without this option it's possible to achieve the goal by implementing hook_module_implements_alter()
and make realname_user_delete()
ineffective. But a more streamlined solution could be implemented in the module.
realname.settings:delete_realname
(bool) and only delete the realname entry if this config is true.RealnameAdminSettingsForm
to expose the new setting.
None.
Site builders ca decide to not delete realnames on user account at /admin/config/people/realname
None.
New config: realname.settings:delete_realname
(bool)
Active
2.0
Code