Manual:Hooks/BadImage
From MediaWiki.org
| BadImage | |
|---|---|
| Available from version 1.7.0 Used to determine if an image exists on the 'bad image list'. Return false to when setting $bad value. |
|
*Define function: |
function fnMyHook( $name, &$bad ) { ... }
|
*Attach hook: |
$wgHooks['BadImage'][] = 'MyExtensionHooks::someExample'; |
| Called from: | ImageFunctions.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:BadImage extensions.
[edit] Details
Defined in ImageFunctions.php
- $bad: true = image is on bad image list.
- $name: String
- return: false = evaluate bad image list, true = use $bad