Manual:Hooks/UserGetAllRights

From MediaWiki.org
Jump to: navigation, search
UserGetAllRights
Available from version 1.13.0
After calculating a list of all available rights

*Define function:
function fnMyHook( &$rights ) { ... }

*Attach hook:
$wgHooks['UserGetAllRights'][] = 'MyExtensionHooks::someExample';
Called from: User.php

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


[edit] Details

  • &$rights: Array of rights, which may be added to.
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox