Manual:Hooks/UserToolLinksEdit
From MediaWiki.org
| UserToolLinksEdit | |
|---|---|
| Available from version 1.19.0 Called when generating a list of user tool links, eg "Foobar (Talk |
|
Define function: |
public static function onUserToolLinksEdit( $userId, $userText, &$items ) { ... }
|
Attach hook: |
$wgHooks['UserToolLinksEdit'][] = 'MyExtensionHooks::onUserToolLinksEdit'; |
| Called from: | Linker.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserToolLinksEdit extensions.
Details [edit]
- $userId: User id of the current user
- $userText: User name of the current user
- &$items: Array of user tool links as HTML fragments