Open main menu

Manual:Hooks/ContributionsLineEnding

< Manual:Hooks
ContributionsLineEnding
Available from version 1.13.0
Called before a contributions HTML line is finished
Define function:
public static function onContributionsLineEnding( $page, $ret, $row ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ContributionsLineEnding": "MyExtensionHooks::onContributionsLineEnding"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ContributionsLineEnding'][] = 'MyExtensionHooks::onContributionsLineEnding';
Called from:File(s): SpecialContributions.php

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

DetailsEdit

  • $page: SpecialPage object for contributions
  • $ret: the HTML line
  • $row: the DB row for this line