Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have not seen a way to show the username as well as profile fields in the realname. So here is a patch that provides that functionality. When this patch is applied you can reference the username in the pattern like this:
%1 %2 (%name)
Which will output something like this:
Darren Phillips (darrenp)
Comment | File | Size | Author |
---|---|---|---|
#1 | 1146290-username-pattern.patch | 677 bytes | darrenphillips |
Comments
Comment #1
darrenphillips CreditAttribution: darrenphillips commentedHere is the patch.
Comment #3
hass CreditAttribution: hass commented