Extension:CheckUser/Hooks/SpecialCheckUserGetLinksFromRow
Appearance
(Redirected from Manual:Hooks/SpecialCheckUserGetLinksFromRow)
SpecialCheckUserGetLinksFromRow | |
---|---|
Available from version 1.23.0 (Gerrit change 111249) Allows controlling the links rendered for a check user row |
|
Define function: | public static function onSpecialCheckUserGetLinksFromRow( AbstractCheckUserPager $specialCheckUser, stdClass $row, array &$links ) { ... }
|
Attach hook: | $wgHooks['SpecialCheckUserGetLinksFromRow'][] = 'MyExtensionHooks::onSpecialCheckUserGetLinksFromRow';
|
Called from: | File(s): CheckUser / src/CheckUser/Pagers/AbstractCheckUserPager.php Function(s): getLinksFromRow |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:SpecialCheckUserGetLinksFromRow extensions.
A hook that wants to override the default generated links must adjust or replace strings in the &$links
variable. Any string added to &$links
must be properly escaped. For convenience the strings in &$links
have array keys, but they are not rendered.
Parameters
[edit]$checkUserPager
: An instance ofAbstractCheckUserPager
$row
: Database row from the cu_changes table, instance ofstdClass
&$links
: Anarray
of HTML strings