Manual:Hooks/CategoryPageView
From MediaWiki.org
| 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
If this method returns false, then the default behavior of CategoryPage::view will be skipped.
Note that if there is a diff and $diffOnly is set, then the diff would be displayed and this hook won't be reached.