[go: nahoru, domu]

Jump to content

Manual:Hooks/RecentChange save

From mediawiki.org
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
RecentChange_save
Available from version 1.8.0
called at the end of RecentChange::save()
Define function:
public static function onRecentChange_save( RecentChange &$recentChange ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"RecentChange_save": "MediaWiki\\Extension\\MyExtension\\Hooks::onRecentChangesave"
	}
}
Called from: File(s): changes/RecentChange.php
Interface: RecentChange_saveHook.php

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

Hook to run once something is published to RecentChanges. This includes things published to "irc" RC feeds which might not be included in normal RecentChanges.

Details

  • $recentChange: RecentChange object

See also