Open main menu

Extension:MobileFrontend/SpecialMobileEditWatchlist::images

< Extension:MobileFrontend
SpecialMobileEditWatchlist::images
Available from version 1.0.0
Internal hook, not for public use, to make adjustments to page images before display in the mobile watchlist. Usage is not encouraged. The hook is currently used to workaround problems by Extension:PageImages and Extension:ZeroBanner.
Define function:
public static function onSpecialMobileEditWatchlist_images( MobileContext $ctx, array $watchlist see SpecialEditWatchlist::getWatchlistInfo, array $images associative array to populate ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialMobileEditWatchlist::images": "MyExtensionHooks::onSpecialMobileEditWatchlistimages"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SpecialMobileEditWatchlist::images'][] = 'MyExtensionHooks::onSpecialMobileEditWatchlistimages';
Called from:File(s): MobileFrontend extension/SpecialMobileEditWatchlist.php

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