Manual:Hooks/ArticleFromTitle

From MediaWiki.org

Jump to: navigation, search
ArticleFromTitle
Available from version 1.8.0
Called to determine the class to handle the article rendering, based on title

*Define function:
function fnMyHook( &$title, &$article ) { ... }

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

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


[edit] Details

  • $title: the title object
  • $article: originally set to null