< Manual:Hooks
ImageOpenShowImageInlineBefore
Available from version 1.11.0
Fired just before showing the image on an image page.
Define function:
public static function onImageOpenShowImageInlineBefore( $imagepage, $out ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ImageOpenShowImageInlineBefore": "MyExtensionHooks::onImageOpenShowImageInlineBefore"
	}
}
Called from: File(s): page/ImagePage.php
Interface: ImageOpenShowImageInlineBeforeHook.php

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

Details

  • $imagepage - The ImagePage object.
  • $out - The OutputPage object.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.