Jump to content

Manual:Hooks/SpecialListusersFormatRow

From mediawiki.org
SpecialListusersFormatRow
Available from version 1.13.0
called right before the end of UsersPager::formatRow
Define function:
public static function onSpecialListusersFormatRow( string &$item, $row ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialListusersFormatRow": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialListusersFormatRow"
	}
}
Called from: File(s): specials/pagers/UsersPager.php
Function(s): formatRow
Interface: SpecialListusersFormatRowHook.php

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


Details

[edit]
  • &$item: HTML to be returned. Will be wrapped in the ‎<li> element after the hook finishes
  • $row: Database row object