I have a link field with no title, so users can only input the URL value.
This field is part of a user profile (profile2) and can be hidden with the Field permissions module depending on the user role.
When a user role expires (Role expire), I empty some fields (Email, Phone and Link field) using Rules and I make sure the user can't input any new values for those fields thanks to the Field permissions module. The problem is that my Link field label remains visible for visitors of this profile while the Email and Phone field labels neatly disappear.

Any ideas how to fix this?

Comments

jenlampton’s picture

Issue summary: View changes

Are you seeing an empty div tag, some whitespace, or a line break inside the HTML tags for the field? I'm seeing the same thing in views, and in panels. Rendered output when the field is empty.

Here's my comment on the views issue blaming link module: https://www.drupal.org/node/1538702#comment-9103073