Manual:Hooks/XMPGetResults

From mediawiki.org
Jump to navigation Jump to search
XMPGetResults
Available from version 1.18.0 (r86169)
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": "MyExtensionHooks::onXMPGetResults"
	}
}
Called from: File(s): XMP.php
Interface: XMPGetResultsHook.php

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


Details[edit]

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).