closeAccount
The closeAccount hook is triggered when a user closes their account. It passes
the user ID, the operation mode and the module as arguments and does not expect
a return value.
The operation mode will either be close_deactivate or close_delete.
Parameters
int
$userIdID of the user which closed their account.
string
$modeThe “close account” mode. Either
close_deactivateorclose_delete.\Contao\Module
$moduleThe front end module object. This allows you to retrieve all data from the current
tl_moduleresult set.