Skip to main content
4 of 4
Commonmark migration

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.

E Y
  • 7.5k
  • 1
  • 42
  • 67