Manual:Hooks/XMPGetResults
From MediaWiki.org
| 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: |
$wgHooks['XMPGetResults'][] = 'MyExtensionHooks::onXMPGetResults'; |
| Called from: | XMP.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:XMPGetResults extensions.
[edit] 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).