Manual:Hooks/SpecialContributions::formatRow::flags

From MediaWiki.org
Jump to navigation Jump to search
SpecialContributions::formatRow::flags
Available from version 1.28.0 (Gerrit change 266670)
Called before rendering a Special:Contributions row.
Define function:
public static function onSpecialContributions_formatRow_flags( $context, $row, &$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): ContribsPager.php

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

Details[edit]

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