I have a site that I need to export permissions from and import into version-controlled code. We aren't using feature, strongarm etc, so although I know a lot of people will say these are the go to solutions, I need to look at alternatives. Are permissions stored as variables in the site or otherwise? I would I export and import variables into an install profile or in a module?
1 Answer
This module(Export roles and permissions) allows you to exports roles and permission by generating a hook_install implementation
This module allows you to generate a hook_install() implementation that creates the chosen roles with their associated permissions. The main purpose for creating this module was to transfer roles from a local dev machine to a remote stage/live server.
- 1that looks the business.Andrew Welch– Andrew Welch2013-08-23 09:49:58 +00:00Commented Aug 23, 2013 at 9:49
{role_permission}table? If your roles id are not supposed to change, it should be all you really need, but I guess for some reason you need a solution a bit more advanced?