Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Text Formats seem to export perfectly fine, but the roles that have permission to use those imput formats (one the same admin form) are not included.
Comments
Comment #1
drupov CreditAttribution: drupov commentedI experience the same problem. I have a bunch of text formats and export the permissions for those through a features.
I use this feature in a profile and after the install the feature shows as overriden. On the user permission page all these permissions are not set.
It is possble to revert it to the state of the code and then the permissions are as expected.
All other permissions are exported the way they are configured.
Comment #2
mohit_aghera CreditAttribution: mohit_aghera commentedI think you can use this http://webwash.net/articles/how-export-node-options-and-text-formats-dru... to export the text format role permission.
You can refer second snapshot under the How To Export Text Formats heading.
http://webwash.net/articles/how-export-node-options-and-text-formats-dru...
Comment #3
hefox CreditAttribution: hefox commentedinstall order perhaps? Are they exported to the same feature? The format needs to exist for the permission to exist so what could be happening is the rebuild of the permission is happening before the format is created, or a cache that says the permission needs to be clear, etc.
I've uses features with role permissions fine before
Comment #4
sphism CreditAttribution: sphism commentedAh the roles are saved as Permissions that you need to add to the feature separately from the text filter
Comment #5
wylbur CreditAttribution: wylbur as a volunteer and at Electric Citizen commentedAdd the role filter under the Permissions. Search for Filter, and add the role filters for each text format.