< Manual:Hooks
UserGetAllRights
Available from version 1.13.0
After calculating a list of all available rights
Define function:
public static function onUserGetAllRights( &$rights ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"UserGetAllRights": "MyExtensionHooks::onUserGetAllRights"
	}
}
Called from: File(s): Permissions/PermissionManager.php
Interface: UserGetAllRightsHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:UserGetAllRights extensions.

Details

  • &$rights: Array of rights, which may be added to.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.