< Manual:Hooks
| This feature was removed from MediaWiki core in version 1.37.0 (after being deprecated in 1.31.0). Please see RevisionRecordInserted for an alternative way to use this feature. |
| RevisionInsertComplete | |
|---|---|
| Available from version 1.13.0 Removed in version 1.37.0 Called after a revision is inserted into the DB | |
| Define function: | public static function onRevisionInsertComplete( &$revision, $data, $flags ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"RevisionInsertComplete": "MyExtensionHooks::onRevisionInsertComplete"
}
}
|
| Called from: | File(s): Revision.php |
| Interface: | RevisionInsertCompleteHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:RevisionInsertComplete extensions.
Details
- &$revision: the Revision object
- $data: URL to external object (deprecated in 1.31.0) Since 1.31.0, this will always return null.
- $flags: flags for this revision (deprecated in 1.31.0) Since 1.31.0, this will always return null.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.