1

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?

3
  • Anything wrong with simply exporting {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? Commented Aug 23, 2013 at 10:02
  • Why aren't you using features? I'll be glad to know the reason. My team and I were using features and it works like a charm.. Commented Aug 23, 2013 at 10:07
  • I don't really know apart from its bloat. Commented Aug 23, 2013 at 10:11

1 Answer 1

3

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.

1
  • 1
    that looks the business. Commented Aug 23, 2013 at 9:49

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.