Jump to content

Manual:Hooks/ContributionsToolLinks

From mediawiki.org
ContributionsToolLinks
Available from version 1.11.0
Change tool links above Special:Contributions
Define function:
public static function onContributionsToolLinks( $id, $title, &$tools, $sp ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ContributionsToolLinks": "MediaWiki\\Extension\\MyExtension\\Hooks::onContributionsToolLinks"
	}
}
Called from: File(s): specials/SpecialContributions.php
Interface: ContributionsToolLinksHook.php

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

Details

[edit]
  • int $id - User identifier
  • Title $title - User page title
  • array &$tools - Array of tool links
  • SpecialPage $sp - The SpecialPage object