Field Visibility

Categories

Component ID

2750385

Component name

Field Visibility

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

570

Component created

Component changed

Component body

Provides a method for hiding or displaying fields (both those defined for the content type and those created by Drupal) when editing a node to a user based on their role. This works differently than field_access that is an "opt-in". This uses an "opt-out" model where all fields are visible by default unless turned off for that role. All default or existing values of the field are maintained.

Configuration:

Configuration settings are found under Structure > Field Visibility
Each content type you have defined in your site will be listed. Select the content type whose fields you wish to hide. By default, all fields are selected. Uncheck any fields that you don't want that user role to see when editing the node type.

Exporting Configuration:

With features, you can export the saved configuration in strongarm. Filter on field_visibility. There is one variable per content type. (You must first save your configuration before the variable is created.)