Manual:Hooks/ArticleViewRedirect

From MediaWiki.org

Jump to: navigation, search
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:
function fnMyHook( $article ) { ... }

*Attach hook:
$wgHooks['ArticleViewRedirect'][] = 'fnMyHook';
Called from: Article.php

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


[edit] Details

$article - The article being redirected to.