Is there a way redirect users after they cancel their accounts? I've configured my site to allow users to cancel their accounts without e-mail confirmation, but I want to be able to redirect them to a "goodbye" page to reassure them that their account was in fact cancelled.
In user_cancel()
, though, account cancellation is performed with the Batch API. I tried adding a drupal_goto()
after the call to batch_set($batch)
, but this forces the goto and the batch processing is not performed.
How can I redirect non-admin users after they cancel their accounts?