Manual:Hooks/FetchChangesList

From MediaWiki.org
Jump to: navigation, search
FetchChangesList
Available from version 1.7.0
Allows extension to modify a recent changes list for a user

*Define function:
function fnMyHook( $user, $skin, &$list ) { ... }

*Attach hook:
$wgHooks['FetchChangesList'][] = 'MyExtensionHooks::someExample';
Called from: ChangesList.php

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


[edit] Details

$user - The user viewing the recent changes list.
$skin - The user's skin.
$list - The recent changes list. Should be returned as a ChangesList object.

An extension can modify the create a $list and then return false to prevent the calling function from building a standard recent changes list. If the extension returns true, the list object will be ignored and the calling function will create its own list based on the users preferences. Make sure that the $list extends ChangesList.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox