You can use user_permission_get_modules() function, which returns an array of all defined permissions and their modules.
Determine the modules that permissions belong to.
Return value
An associative array in the format $permission => $module.
You can use user_permission_get_modules() function, which returns an array of all defined permissions and their modules.
Determine the modules that permissions belong to.
Return value
An associative array in the format $permission => $module.