Jump to navigation Jump to search
Available from version 1.25.0 (Gerrit change 169540)
When getting extra inputs to display on Special:Log for a specific log type
Define function:
public static function onLogEventsListGetExtraInputs( $type, $logEventsList, &$input ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"LogEventsListGetExtraInputs": "MyExtensionHooks::onLogEventsListGetExtraInputs"

For MediaWiki ≤1.25:

$wgHooks['LogEventsListGetExtraInputs'][] = 'MyExtensionHooks::onLogEventsListGetExtraInputs';
Called from:File(s): logging/LogEventsList.php
Function(s): getExtraInputs

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


  • $type: String of log type being displayed
  • $logEventsList: LogEventsList object for context and access to the WebRequest
  • &$input: string HTML of an input element