Manual:Hooks/MarkPatrolledComplete
Appearance
MarkPatrolledComplete | |
---|---|
Available from version 1.6.0 Called after an edit is marked patrolled | |
Define function: | public static function onMarkPatrolledComplete( $rcid, $user, $wcOnlySysopsCanPatrol ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"MarkPatrolledComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onMarkPatrolledComplete"
}
}
|
Called from: | File(s): RecentChange.php |
Interface: | MarkPatrolledCompleteHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:MarkPatrolledComplete extensions.
Details
[edit]- $rcid: ID of the revision marked as patrolled
- $user: user (object) who marked the edit patrolled
- $wcOnlySysopsCanPatrol: config setting indicating whether the user must be a sysop to patrol the edit