Jump to content

Manual:Hooks/SpecialRecentChangesPanel

From mediawiki.org
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialRecentChangesPanel"
	}
}
Called from: File(s): specials/SpecialRecentChanges.php
Interface: SpecialRecentChangesPanelHook.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