Manual:Hooks/OtherBlockLogLink

Category:MediaWiki hooks#OtherBlockLogLink Category:Hooks added in MediaWiki 1.16.0#OtherBlockLogLink
OtherBlockLogLink
Available from version 1.16.0
Get links to the block log from extensions which blocks users and/or IP addresses too.
Define function:
public static function onOtherBlockLogLink( &$otherBlockLink, $ip ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"OtherBlockLogLink": "MediaWiki\\Extension\\MyExtension\\Hooks::onOtherBlockLogLink"
	}
}
Called from: File(s): specials/SpecialBlock.phpCategory:MediaWiki hooks included in SpecialBlock.php#OtherBlockLogLink, specials/SpecialBlockList.phpCategory:MediaWiki hooks included in SpecialBlockList.php#OtherBlockLogLink
Interface: OtherBlockLogLinkHook.php

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

Details

  • $otherBlockLink: An array with links to other block logs
  • $ip: The requested IP address or username
Category:Hooks added in MediaWiki 1.16.0 Category:MediaWiki hooks Category:MediaWiki hooks included in SpecialBlock.php Category:MediaWiki hooks included in SpecialBlockList.php