I have a number of roles added through the features module and none of them will show from the admin/settings/filters/defaults page. It seems as though this module doesn't pick them up, although all the other places within the site is aware of the roles existence.
Comments
Comment #1
dragonwize commented#616496: Features integration
Comment #2
nicholas.alipaz commentedActually this is not a duplicate, I don't think you understand the issue.
The roles appear in the {role} table in the database and they were autocreated via a feature. However they do not get listed in the list of roles at admin/settings/filters/defaults. If I create a role manually it shows up. But creating it via feautures simply does not work.
It seems the issue is around line 110 of better_formats_default.admin.inc where we have:
When the role is created via features it won't have an entry in {better_formats_default} so there is nothing to do an INNER JOIN against and it won't be added to the object that is used to output the list of roles on admin/settings/filters/defaults.
Looking at my tables in mysql I can see that {better_formats_default} is indeed missing 2 roles that were imported via features.
Comment #3
dragonwize commentedIt is a duplicate.
Features, like many other modules, creates roles by sticking them straight into the database. This is because D6 does not have an API for roles. By doing so it bypasses BF's knowledge of the the role that is hooked into the form api because there is no roles api.
There has been code committed to help modules around this for the time being. The features integration patch should be taking care of using this code for the features module.
Comment #4
nicholas.alipaz commentedOK, I see what you are explaining. Thanks for describing the issue.
Comment #5
nicholas.alipaz commentedoops, sorry firefox cached that form
Comment #6
paskainos commentedsubscribing