Manual:Hooks/UploadFormSourceDescriptors

From MediaWiki.org
Jump to: navigation, search
UploadFormSourceDescriptors
Available from version 1.16.0
Occurs after the standard source inputs have been added to the descriptor.

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

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

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


[edit] Details

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