Manual:Hooks/WatchlistEditorBuildRemoveLine

From mediawiki.org
Jump to navigation Jump to search
WatchlistEditorBuildRemoveLine
Available from version 1.17.0 (r66064)
Occurs when building remove lines in Special:Watchlist/edit
Define function:
public static function onWatchlistEditorBuildRemoveLine( &$tools, $title, $redirect, $skin, &$link ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"WatchlistEditorBuildRemoveLine": "MyExtensionHooks::onWatchlistEditorBuildRemoveLine"
	}
}
Called from:File(s): specials/SpecialEditWatchlist.php
Interface:WatchlistEditorBuildRemoveLineHook.php

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

Details[edit]

  • &$tools: array of extra links
  • $title: Title object
  • $redirect: whether the page is a redirectl
  • $skin: Skin object
  • &$link: HTML link to title