Manual:Hooks/ImageOpenShowImageInlineBefore

From MediaWiki.org
Jump to: navigation, search
ImageOpenShowImageInlineBefore
Available from version 1.11.0
Fired just before showing the image on an image page.

*Define function:
function fnMyHook( $imagepage, $out ) { ... }

*Attach hook:
$wgHooks['ImageOpenShowImageInlineBefore'][] = 'MyExtensionHooks::someExample';
Called from: ImagePage.php

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


[edit] Details

$imagepage - The ImagePage object.
$out - The OutputPage object.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox