< Manual:Hooks
RecentChangesPurgeRows | |
---|---|
Available from version 1.30.0 (Gerrit change 351146) Called when old recentchanges rows are purged, after deleting those rows but within the same transaction. | |
Define function: | public static function onRecentChangesPurgeRows( array $rows ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"RecentChangesPurgeRows": "MyExtensionHooks::onRecentChangesPurgeRows"
}
}
|
Called from: | File(s): jobqueue/jobs/RecentChangesUpdateJob.php Function(s): purgeExpiredRows |
Interface: | RecentChangesPurgeRowsHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:RecentChangesPurgeRows extensions.
Details
$rows
: The deleted rows as an array of recentchanges row objects (with up to$wgUpdateRowsPerQuery
items).
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.