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
5 hours 58 min ago
5 hours 59 min ago
6 hours 28 sec ago
6 hours 1 min ago
6 hours 2 min ago
6 hours 50 min ago
8 hours 21 min ago
8 hours 23 min ago
8 hours 34 min ago
8 hours 37 min ago