I am using Drupal 7 profile2 module for creating user profile and Organic group module for group managemnet.
I have user status field in user profile, and there are two options(radio button) for visibility of profile field like 1. Visible in Group 2. Invisible.
Visible in Group is selected then any group member can see the user status
Invisible then no one can see the user status field
Now I want to know that is there any way to unset the profile field during viewing. Is any hook calling during user view event ?
I have also the code that checks whether user being viewed and logged in user are member of same group or not