Manual:Hooks/GetLogTypesOnUser

From MediaWiki.org
Jump to: navigation, search
GetLogTypesOnUser
Available from version 1.23.0
Add log types where the target is a userpage
Define function:
public static function onGetLogTypesOnUser( &$types ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"GetLogTypesOnUser": [
			"MyExtensionHooks::onGetLogTypesOnUser"
		]
	}
}

For MediaWiki ≤1.25:

$wgHooks['GetLogTypesOnUser'][] = 'MyExtensionHooks::onGetLogTypesOnUser';
Called from: File(s): SpecialLog.php

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

Details[edit]

  • &$types: Array of log types