Manual:Hooks/SpecialWatchlistGetNonRevisionTypes

Category:MediaWiki hooks#SpecialWatchlistGetNonRevisionTypesCategory:Hooks added in MediaWiki 1.22.0#SpecialWatchlistGetNonRevisionTypes Category:MediaWiki deprecated or obsolete features#SpecialWatchlistGetNonRevisionTypes Category:Hooks deprecated in MediaWiki 1.45.0#SpecialWatchlistGetNonRevisionTypes
SpecialWatchlistGetNonRevisionTypes
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialWatchlistGetNonRevisionTypes"
	}
}
Called from: File(s): SpecialPage/ChangesListSpecialPage.phpCategory:MediaWiki hooks included in ChangesListSpecialPage.php#SpecialWatchlistGetNonRevisionTypes, Specials/SpecialWatchlist.phpCategory:MediaWiki hooks included in SpecialWatchlist.php#SpecialWatchlistGetNonRevisionTypes
Interface: SpecialWatchlistGetNonRevisionTypesHook.php

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

Details

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

See also

Category:Hooks added in MediaWiki 1.22.0 Category:Hooks deprecated in MediaWiki 1.45.0 Category:MediaWiki deprecated or obsolete features Category:MediaWiki hooks Category:MediaWiki hooks included in ChangesListSpecialPage.php Category:MediaWiki hooks included in SpecialWatchlist.php