The permissions_api module provides a method for granting and revoking permissions for a given role. This module helps with the issue of staging a Drupal site across multiple environments, from development sandbox to production environment.The ability to import CCK content types through code is great until you decide that you want members of specific roles to be able to do something with this content type.Currently, the only way to grant the permissions is to navigate through the access control page in the admin interface, which is completely unusable if you have a lot of roles and a lot of modules. This module addresses that problem by providing the following functions:
- permissions_grant_permissions()
- permissions_revoke_permissions()
- permissions_grant_all_permissions()
- permissions_grant_all_permissions_by_module()
- permissions_revoke_all_permissions_by_module()
- permissions_get_permissions_for_role()
- permissions_get_role()
- permissions_create_role()
- permissions_role_inherit()


Recent comments
17 hours 42 min ago
1 week 6 days ago
1 week 6 days ago
1 week 6 days ago
1 week 6 days ago
1 week 6 days ago
2 weeks 1 day ago
4 weeks 1 day ago
10 weeks 3 days ago
16 weeks 5 days ago