Manual:Hooks/XMPGetResults

Category:MediaWiki hooks#XMPGetResults Category:Hooks added in MediaWiki 1.18.0#XMPGetResults
XMPGetResults
Available from version 1.18.0 (r86169, CodeReview archive)
Called just before returning the results array of parsing xmp data.
Define function:
public static function onXMPGetResults( &$data ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"XMPGetResults": "MediaWiki\\Extension\\MyExtension\\Hooks::onXMPGetResults"
	}
}
Called from: File(s): XMP.phpCategory:MediaWiki hooks included in XMP.php#XMPGetResults
Interface: XMPGetResultsHook.php

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

Details

Can be used to post-process the results.

  • &$data: Array of metadata sections (such as $data['xmp-general']) each section is an array of metadata tags returned (each tag is either a value, or an array of values).
Category:Hooks added in MediaWiki 1.18.0 Category:MediaWiki hooks Category:MediaWiki hooks included in XMP.php