< Manual:Hooks 
 
      | UserToolLinksEdit | |
|---|---|
| Available from version 1.19.0 Called when generating a list of user tool links, eg "Foobar (Talk | Contribs | Block)" | |
| Define function: | public static function onUserToolLinksEdit( $userId, $userText, &$items ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"UserToolLinksEdit": "MyExtensionHooks::onUserToolLinksEdit"
	}
}
 | 
| Called from: | File(s): Linker.php | 
| Interface: | UserToolLinksEditHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserToolLinksEdit extensions.
Details
- $userId: User id of the current user
- $userText: User name of the current user
- &$items: Array of user tool links as HTML fragments
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.