When using RealName module, the anonymous contact form still prints out the account username instead of the formatted RealName.

For realname to work, it's helpful if other modules use theme('username', $account) instead of $account->name.

Comments

eporama’s picture

Status: Active » Needs review
StatusFileSize
new688 bytes

I've attached a patch that updates $account->name to strip_tags(theme('username', $account)) which allows the themed username without forcing the link to the user's profile.

soulfroys’s picture

StatusFileSize
new1.51 KB

Show realname in email too.

soulfroys’s picture

StatusFileSize
new1.75 KB

Sorry, wrong patch. Please disregard patch above and use another patch attached to this.