Manual:Hooks/ShowMissingArticle

From MediaWiki.org
Jump to: navigation, search
ShowMissingArticle
Available from version 1.16.0
Called when generating the output for a non-existent page.

Define function:
public static function onShowMissingArticle( $article ) { ... }

Attach hook:
$wgHooks['ShowMissingArticle'][] = 'MyExtensionHooks::onShowMissingArticle';
Called from: Article.php

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


[edit] Details

  • $article: The article object corresponding to the page
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox