Manual:Hooks/BitmapHandlerCheckImageArea

From MediaWiki.org
Jump to: navigation, search
BitmapHandlerCheckImageArea
Available from version 1.19.0
Called by BitmapHandler::normaliseParams(), after all normalizations have been performed, except for the $wgMaxImageArea check.

Define function:
public static function onBitmapHandlerCheckImageArea( $image, &$params, &$checkImageAreaHookResult ) { ... }

Attach hook:
$wgHooks['BitmapHandlerCheckImageArea'][] = 'MyExtensionHooks::onBitmapHandlerCheckImageArea';
Called from: Bitmap.php

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


Details[edit | edit source]

  • $image: File
  • &$params: Array of parameters
  • &$checkImageAreaHookResult: null, set to true or false to override the $wgMaxImageArea check result