Manual:Hooks/ImportHandleUploadXMLTag

From MediaWiki.org
Jump to: navigation, search
ImportHandleRevisionXMLTag
Available from version 1.17.0
When parsing a XML tag in a file upload.

Define function:
public static function onImportHandleRevisionXMLTag( $reader, $revisionInfo ) { ... }

Attach hook:
$wgHooks['ImportHandleRevisionXMLTag'][] = 'MyExtensionHooks::onImportHandleRevisionXMLTag';
Called from: Import.php

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


[edit] Details

  • $reader: XMLReader object
  • $revisionInfo: Array of information

Return false to stop further processing of the tag

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox