Hello,

The printing of the username in this module looks to use the plain username instead of the themed username.
For example:

drupal_set_message(t('User record deleted. All submitted content from %name has been deleted.', array('%name' => check_plain($account->name), '!anonymous' => variable_get('anonymous', t('Anonymous')))));

Would it be possible to make all username occurrences to be the themed username in this module?

My site has a themed username so instead of er8t it will show 'Eric'
Now => User record deleted. All submitted content from er8t has been deleted.
Better => User record deleted. All submitted content from Eric has been deleted.

Example http://drupal.org/node/792244#comment-2973904

'!username_themed' => strip_tags(theme('username', $account, array('plain' => TRUE))),

Thank you!

CommentFileSizeAuthor
#2 user_delete-807738.patch1.05 KBilo

Comments

plan9’s picture

Subscribing - I would also like to see this feature

ilo’s picture

Status: Active » Needs review
StatusFileSize
new1.05 KB

yaz85, can you give a try?

YK85’s picture

The informational message no longer seems to appear after the user deletes his/her own account with or without the patch.
I wonder what is going on?

ilo’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Needs work

Messages are session based, if there is no session, then messages are not stored and shown. I don't know if something changed since them, but I'll focus all my attention to the 6.x-2.x branch, as this one is a real backport of the Drupal 7 user cancel api. I'm moving the issue to the other branch, and see what and how are the messages shown. As long as a user cancels its account, it is advised about what is going to happen before he clicks on 'cancel account' button, after that, user is no longer considered and probably will not see any messages. These messages appear however for an administrator canceling other's accounts.

aaron stanush’s picture

Related to this, I think admins would benefit from having some extra information on this confirmation page.

For example, this module is great for deleting spam users and their content – and spam users usually have spammy-looking email addresses, e.g. hug.h.e.sra.w.lov.t.o.m@gmail.com

If this type of information was displayed on the confirmation page, there would be no doubt that they are deleting the correct user.

YK85’s picture

Re: #4
Users of a site see a informational message after their account is deleted.
String: User record deleted. All submitted content from %name has been deleted.
For this message I would like their themed username to be shown.

Thank you!

chuckbar77’s picture

subscribe, +1 for this new feature