< Manual:Hooks
| XMPGetResults | |
|---|---|
| Available from version 1.18.0 (r86169, codereview) 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
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).
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.