Manual:Hooks/ImportHandleUploadXMLTag

ImportHandleUploadXMLTag
Available from version 1.17.0
When parsing a XML tag in a file upload.
Define function:
public static function onImportHandleUploadXMLTag( $importer, $revisionInfo ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ImportHandleUploadXMLTag": "MyExtensionHooks::onImportHandleUploadXMLTag"
	}
}
Called from:File(s): import/WikiImporter.php
Interface:ImportHandleUploadXMLTagHook.php

For more information about attaching hooks, see $1.
For examples of extensions using this hook, see Category:ImportHandleUploadXMLTag extensions.

DetailsEdit

  • $importer: WikiImporter object
  • $revisionInfo: Array of information

Return false to stop further processing of the tag