< Manual:Hooks
| 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": "MyExtensionHooks::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
- $article - The article object.
- $oldid - The id of the revision to show.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.