I would like to have an option to show something other than the username in the wishlist list of names. Currently the module uses the user's username which can be quite confusing if they use a name like "demonoid698". I use this solely for friends and family and need it to be as easy as possible for them to recognize who is who.
If there could be a link created to the the profile module that would be nice. That way the user would only have to enter the field once in their "my account" screen. If that field is made necessary when a user first creates their login (as I have it) then the user would never have to change their name. It could also be an administrator option to use the profile field name. It would have a check box with a text field to type in the name of the field from the profile module. If it was a check box it could be disabled too if any problems occurred because of the dependency.
Comments
Comment #1
scott.mclewin commentedIn doing the research to prepare for this one, I've decided to decline the feature request. There is no 'one place' to get this information from within the Drupal sphere.
However, I'm not going to leave you hanging. I've reworked the function that retrieves and formats the username for the wishlist module to call out to a theme function to get the username. It gives you a chance to override that in your local theme and pull out the user's name from whatever source you want.
Override 'wishlist_username' to get the behavior you need. I'll caveat here by saying that if you don't know how to work the theme system I'm not lined up to be your teacher. :) Dig out the handbook pages on how to override a theme function and have at it. To start you off, open up or create template.php in your theme directory, create a function called foo_wishlist_username where foo is the name of your theme, give it the same function signature as is on theme_wishlist_username and then put your logic inside of it.
Comment #2
(not verified) commented