Manual:Hooks/EnhancedChangesListModifyBlockLineData

From MediaWiki.org
Jump to navigation Jump to search
EnhancedChangesListModifyBlockLineData
Available from version 1.26.0
Modify data used to build a non-grouped entry in Special:RecentChanges
Define function:
public static function onEnhancedChangesListModifyBlockLineData( $changesList, &$data, $rc ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"EnhancedChangesListModifyBlockLineData": "MyExtensionHooks::onEnhancedChangesListModifyBlockLineData"
	}
}

For MediaWiki ≤1.25:

$wgHooks['EnhancedChangesListModifyBlockLineData'][] = 'MyExtensionHooks::onEnhancedChangesListModifyBlockLineData';
Called from:File(s): changes/EnhancedChangesList.php
Function(s): recentChangesBlockLine

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

Details[edit]

Allows extensions to modify the data used to build a non-grouped entry in Special:RecentChanges

  • $changesList: EnhancedChangesList object
  • &$data: An array with all the components that will be joined in order to create the line
  • $rc: The RecentChange object for this line