I am relatively new to drupal and for days I'm stuck.
I need to hide fields from the user profile page when they have a specific value. Adding a CSS class would also do it. But I prefer deleting the array element.
I try to use the
hook_profile2_view_alter() function in my template php. Sure I can access the field options but not it's value directly.
Perhaps I'm digging in the wrong hole and there is a smooth "Drupal way" to do it.