Hi,
If this is not relevant to fields permission then let me know.
I'm attaching the HTTPfetcher from the Feeds module to a content type, and I only want it available to certain roles.
The Field/Form is added via the plugin to the content type, which appears in the Content Type Manage Field Settings and Display Settings.
But there are no option for me to assign permissions to the Field.
I think this is a Feeds problem when creating the Field in the plugin but maybe I can expose the plugin to Fields Permissions if it is possible to do programmatically via the module.
Can anyone give me direction on this, whether it is possible or something that really should be done independently in the Module.
Basically I need to expose a custom field to Fields Permission which is being made in a module.
Comments
Comment #1
tetmo commentedI'm curious about this as well. I need it because the field_permissions module gives an error because the permission is not accessible via user_permission_get_modules() and on admin>permissions. You have to go through the interface and set it to make seen. This makes porting field_permissions with features difficult and requires you to set the permission on the field initially. Once that is done the features module can change the permission just fine. But it looks in user_permission_get_modules() and if it is not there then you get a null constraint.
Comment #2
mariacha1 commentedGiven the approaching end of life for Drupal 7 and the age of this ticket, I'm closing, but will drop a few hints to why a custom module's field might not show up.
We use the
hook to add field permissions via
and
If the field's edit form doesn't match that formula, the values might not show up.