0

Suppose When a user doing the registration, site will ask that "Do you like to show your email ID?" If the user selects YES then the site will show his email ID and if it selecet no the site will not, I am new to the drupal, so please help me.

2 Answers 2

1

Check out the following modules

User Field Privacy

A successor of Profile Privacy for Drupal 7 that works with standard Field API (ie. non-profile) user fields.

In easier-to-understand terms:

  • All the user fields should have an "alterable privacy" checkbox.
  • If this checkbox is ticked, the user should be presented with an additional checkbox for the privacy-enabled fields on user edit forms to be able to make that fields' values private.
  • If this second checkbox is ticked for a field of a user, only the site administrators (members of roles with the "Access private fields" permission) and the user herself should be able to view that field's value.

Profile Privacy

This module allows users to set privacy options for their profile fields when using the core profile.module. It does not create any settings pages or configuration screens, and it integrates seamlessly with the existing profile module.

0
0

Check this out: Override user pages with a view

You should as well build up a view for the user page to control if the email address is displayed or not.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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