Manual:Hooks/UploadForm:initial

From MediaWiki.org
Jump to: navigation, search
UploadForm:initial
Available from version 1.9.0
Called just before the upload form is generated
Define function:
public static function onUploadForm_initial( $uploadFormObj ) { ... }
Attach hook:
$wgHooks['UploadForm:initial'][] = 'MyExtensionHooks::onUploadForm_initial';
Called from: File(s): SpecialUpload.php

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

Details[edit]

  • $uploadFormObj: current UploadForm object