Extension:CheckUser/Hooks/CheckUserInsertForRecentChange
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate>
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version <tvar name=ver>1.40.0</tvar>.</translate> |
CheckUserInsertForRecentChange | |
---|---|
Available from version 1.23.0 (Gerrit change 117246) Allows external processing of rows inserted for recent change events |
|
Define function: | public static function onCheckUserInsertForRecentChange( RecentChange $rc, array &$rcRow ) { ... }
|
Attach hook: | $wgHooks['CheckUserInsertForRecentChange'][] = 'MyExtensionHooks::onCheckUserInsertForRecentChange';
|
Called from: | File(s): CheckUser / includes/CheckUserHooks.php Function(s): updateCheckUserData |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:CheckUserInsertForRecentChange extensions.
Allows extensions to intercept and modify the data inserted to cu_changes table when triggered by a RecentChange
insert.
Parameters
$rc
: The database row triggering the insert, instance ofRecentChange
&$rcRow
: Anarray
The database row to be inserted to cu_changes table