Manual:Hooks/ExtractThumbParameters
This feature was removed completely in version 1.30.0 (after being deprecated in 1.22.0).
An instance of a MediaHandler object should override MediaHandler::parseParamString instead. |
ExtractThumbParameters | |
---|---|
Available from version 1.18.1 (r105512, codereview) Removed in version 1.30.0 (Gerrit change 348167) Called when extracting thumbnail parameters from a thumbnail file name. | |
Define function: | public static function onExtractThumbParameters( $thumbname, &$params ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ExtractThumbParameters": "MediaWiki\\Extension\\MyExtension\\Hooks::onExtractThumbParameters"
}
}
|
Called from: | File(s): ../thumb.php Function(s): wfExtractThumbParams |
Interface: | ExtractThumbParametersHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ExtractThumbParameters extensions.
Details
edit$thumbname
: the base name of the thumbnail file&$params
: the currently extracted params (has source name, temp or archived zone)