Jump to navigation Jump to search
Available from version 1.22.0
Allows extensions to register the value they have inserted to rc_type field of recentchanges for non-revision changes so they can be included in the watchlist.
Define function:
public static function onSpecialWatchlistGetNonRevisionTypes( array &$nonRevisionTypes ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SpecialWatchlistGetNonRevisionTypes": "MyExtensionHooks::onSpecialWatchlistGetNonRevisionTypes"

For MediaWiki ≤1.25:

$wgHooks['SpecialWatchlistGetNonRevisionTypes'][] = 'MyExtensionHooks::onSpecialWatchlistGetNonRevisionTypes';
Called from:File(s): specialpage/ChangesListSpecialPage.php, specials/SpecialWatchlist.php

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


  • &$nonRevisionTypes: array of integers matching the rc_type field of the recentchanges table.