Available from version 1.28.0 (Gerrit change 266670)
Called before rendering a row for Special:Contributions.
Define function:
public static function onSpecialContributions_formatRow_flags( IContextSource $context, $row, array &$flags ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SpecialContributions::formatRow::flags": "MyExtensionHooks::onSpecialContributionsformatRowflags"

For MediaWiki ≤1.25:

$wgHooks['SpecialContributions::formatRow::flags'][] = 'MyExtensionHooks::onSpecialContributionsformatRowflags';
Called from:File(s): specials/pagers/ContribsPager.php

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


  • $context: IContextSource object
  • $row: Revision information from the database
  • &$flags: List of flags on this row