Possible Duplicate:
How can I display a picture from a field as the user picture rather than the drupal default with user-picture.tpl.php?

I would like to display the user pictures in message list and message view. The images are uploaded through a user profile field, and not the default Drupal account picture field.

How do I do this in Drupal 7?

marked as duplicate by kiamlaluno Apr 8 '12 at 20:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Private Message displays the user picture via a theme('user_picture') so I'd just copy the user-picture.tpl.php template out of the system user module directory and into your theme's and modify it to display your field instead of the default. You may want to put additional logic in there so that it doesn't do this everywhere but that's up to you.

Not the answer you're looking for? Browse other questions tagged or ask your own question.