< Manual:Hooks
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: | public static function onBadImage( $name, &$bad ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"BadImage": "MyExtensionHooks::onBadImage"
}
}
|
Called from: | File(s): GlobalFunctions.php |
Interface: | BadImageHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:BadImage extensions.
Details
Defined in ImageFunctions.php
- $bad: true = image is on bad image list.
- $name: String
- return: false = evaluate bad image list, true = use $bad
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.