< Manual:Hooks
| ArticleViewRedirect | |
|---|---|
| Available from version 1.5.1 Allows an extension to prevent the display of a "Redirected From" link on a redirect page. | |
| Define function: | public static function onArticleViewRedirect( $article ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"ArticleViewRedirect": "MyExtensionHooks::onArticleViewRedirect"
}
}
|
| Called from: | File(s): page/Article.php |
| Interface: | ArticleViewRedirectHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ArticleViewRedirect extensions.
Details
$article - The article being redirected to.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.