I am using this module to create new roles and set permissions for these roles inside hook_install(). Permissions are set fine for modules that are not part of Core -required, but permissions belonging to modules that are under the Core - required package are not being updated. The Permissions API module is installed separately on it's own before the module calling the Permissions API functions is installed.

Cheers,

Antoine

Comments

ebeyrent’s picture

Assigned: Unassigned » ebeyrent
ebeyrent’s picture

Status: Active » Postponed (maintainer needs more info)

Each function in Permissions API returns a value if the function was successful, or FALSE if there was a failure. There's also quite a bit of logging to watchdog. If you're not getting values back from the function calls, and there's nothing in watchdog, then it sounds like the hook_install() implementation might not be firing the way you expect. Can you please check the function returns and watchdog to see if any errors are being logged?

You might also consider moving your setup functions to a hook_enable() implementation.

ebeyrent’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Closed due to lack of response.