Manual:Hooks/ImagePageFileHistoryLine
From MediaWiki.org
ImagePageFileHistoryLine | |
---|---|
Available from version 1.13.0 Called when a file history line is contructed. |
|
Define function: |
public static function onImagePageFileHistoryLine( $imagepage, $file, $line, $css ) { ... } |
Attach hook: |
$wgHooks['ImagePageFileHistoryLine'][] = 'MyExtensionHooks::onImagePageFileHistoryLine'; |
Called from: | File(s): ImagePage.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ImagePageFileHistoryLine extensions.
Details[edit | edit source]
- $imagepage: an instance of ImagePage object
- $file: the file
- $line: the HTML of the history line
- $css: the line CSS class