Manual:Hooks/CategoryPageView

From MediaWiki.org

Jump to: navigation, search
CategoryPageView
Available from version 1.4.3
Called before viewing a categorypage in CategoryPage::view

*Define function:
function fnMyHook( &$categoryArticle ) { ... }

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

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


[edit] Details

  • $catpage: CategoryPage instance