Manual:Hooks/UploadCreateFromRequest
From MediaWiki.org
| UploadCreateFromRequest | |
|---|---|
| Available from version 1.16.0 When UploadBase::createFromRequest has been called |
|
*Define function: |
function fnMyHook( $type, &$className ) { ... }
|
*Attach hook: |
$wgHooks['UploadCreateFromRequest'][] = 'MyExtensionHooks::someExample'; |
| Called from: | UploadBase.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UploadCreateFromRequest extensions.
[edit] Details
- $type: string: the requested upload type
- &$className: the class name of the Upload instance to be created