Manual:Hooks/DisplayOldSubtitle
Appearance
From mediawiki.org
| DisplayOldSubtitle | |
|---|---|
| Available from version 1.8.0 Allows extensions to modify the displaying of links to other revisions when browsing through revisions. | |
| Define function: | public static function onDisplayOldSubtitle( $article, $oldid ) { ... } |
| Attach hook: | In extension.json:
{ "Hooks":{ "DisplayOldSubtitle":"MediaWiki\\Extension\\MyExtension\\Hooks::onDisplayOldSubtitle" } } |
| Called from: | File(s): page/Article.php |
| Interface: | DisplayOldSubtitleHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:DisplayOldSubtitle extensions.
Details
[edit ]- $article - The article object.
- $oldid - The id of the revision to show.