Manual:Hooks/UploadFormInitDescriptor

From MediaWiki.org
Jump to: navigation, search
UploadFormInitDescriptor
Available from version 1.16.0
Occurs after the descriptor for the upload form as been assembled.

*Define function:
function fnMyHook( $descriptor ) { ... }

*Attach hook:
$wgHooks['UploadFormInitDescriptor'][] = 'MyExtensionHooks::someExample';
Called from: SpecialUpload.php

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


[edit] Details

  • $descriptor: the HTMLForm descriptor
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox