Add default configopn model load
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -102,6 +102,30 @@ class GlModelHooks {
|
||||
$out->addModules('ext.glmv.upl');
|
||||
}
|
||||
|
||||
/**
|
||||
* MWHook: Called just before the upload data, like wpUploadDescription, are processed, so extensions get a chance to manipulate them.
|
||||
*
|
||||
* @param SpecialUpload $uploadFormObj current SpecialUpload object
|
||||
*/
|
||||
public static function onUploadFormBeforeProcessing( $uploadFormObj ) {
|
||||
$uploadFormObj->mComment .= <<<CONF
|
||||
|
||||
<pre>
|
||||
{
|
||||
"viewerConfig": {
|
||||
"default": {
|
||||
"camera-controls": true
|
||||
}
|
||||
},
|
||||
"annotations": {},
|
||||
"annotationSets": {}
|
||||
}
|
||||
</pre>
|
||||
CONF;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Small helper function to display information on the browser console
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user