Manual:Hooks/XmlDumpWriterWriteRevision
From MediaWiki.org
| XmlDumpWriterWriteRevision | |
|---|---|
| Available from version 1.16.0 Called at the end of a revision in an XML dump, to add extra metadata. |
|
Define function: |
public static function onXmlDumpWriterWriteRevision( $obj, &$out, $row, $text ) { ... }
|
Attach hook: |
$wgHooks['XmlDumpWriterWriteRevision'][] = 'MyExtensionHooks::onXmlDumpWriterWriteRevision'; |
| Called from: | Export.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:XmlDumpWriterWriteRevision extensions.
Details [edit]
- $obj: The XmlDumpWriter object.
- &$out: The text being output.
- $row: The database row for the revision.
- $text: The revision text.