Manual:Hooks/BeforeParserrenderImageGallery

From MediaWiki.org
Jump to: navigation, search
BeforeParserrenderImageGallery
Available from version 1.10.1
Allows an extension to modify an image gallery before it is rendered.

*Define function:
function fnMyHook( $parser, $imagegallery ) { ... }

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

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


[edit] Details

$parser - The parser object
$imagegallery - The gallery that is about to be rendered

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