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"
	}
}

For MediaWiki ≤1.25:

$wgHooks['WatchlistEditorBuildRemoveLine'][] = 'MyExtensionHooks::onWatchlistEditorBuildRemoveLine';
Called from:File(s): specials/SpecialEditWatchlist.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