Manual:Hooks/SpecialRecentChangesPanel

From MediaWiki.org
Jump to navigation Jump to search
SpecialRecentChangesPanel
Available from version 1.13.0
Called when building form options in SpecialRecentchanges.
Define function:
public static function onSpecialRecentChangesPanel( &$extraOpts, $opts ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialRecentChangesPanel": "MyExtensionHooks::onSpecialRecentChangesPanel"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SpecialRecentChangesPanel'][] = 'MyExtensionHooks::onSpecialRecentChangesPanel';
Called from:File(s): SpecialRecentchanges.php

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

Details[edit]

  • &$extraOpts: array of added items, to which can be added
  • $opts: FormOptions for this request