Manual:Hooks/SpecialWatchlistGetNonRevisionTypes
Appearance
Deprecated: This feature is deprecated and should no longer be used, however it is possibly still available for reasons of backwards compatibility. This feature was deprecated in version 1.45.0. Instead, extensions should ensure that rc_this_oldid is set to zero on recent changes entries that do not relate to any particular revision. This hook is never called starting in MediaWiki 1.45 (it's no-op per the stable interface policy). See Manual:recentchanges table for an alternative way to use this feature. |
| 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.php, Specials/SpecialWatchlist.php |
| Interface: | SpecialWatchlistGetNonRevisionTypesHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialWatchlistGetNonRevisionTypes extensions.
Details
[edit]- &$nonRevisionTypes: array of integers matching the rc_type field of the recentchanges table.