Choosing which comments field to display when published I'm using the basic comment module to allow users to leave comments (name, phone, email, comment, and rating) on each resource for that specific comment type. One of the fields is an option to allow users to choose to share their personal information to others if they want. All comments are unpublished by default and have to be moderated to be published.

So, my question is this: how can I selectively choose to publish a users email or not depending on if they selected to share that information with others?

Either a manual or automatic way would work fine. Thanks!
You could use the template_preprocess_comment function. First you need to check the value of the "share my personal information" field or whatever you called it and act on that to display the user's email.