Manual:Hooks/ImagePageShowTOC

From MediaWiki.org
Jump to: navigation, search
ImagePageShowTOC
Available from version 1.16.0
Called when fetching the file associed with an image page.

Define function:
public static function onImagePageShowTOC( $page, &$toc ) { ... }

Attach hook:
$wgHooks['ImagePageShowTOC'][] = 'MyExtensionHooks::onImagePageShowTOC';
Called from: ImagePage.php

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


[edit] Details

  • $page: ImagePage object
  • &$toc: Array of <li> strings
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox