Manual:Hooks/ImagePageFindFile

From MediaWiki.org

Jump to: navigation, search
ImagePageFindFile
Available from version 1.13.0
Called when fetching the file associed with an image page.

*Define function:
function fnMyHook( $page, &$file, &$displayFile ) { ... }

*Attach hook:
$wgHooks['ImagePageFindFile'][] = 'fnMyHook';
Called from: ImagePage.php

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


[edit] Details

  • $page: ImagePage object
  • &$file: File object
  • &$displayFile: displayed File object