< Manual:Hooks
| MarkPatrolled | |
|---|---|
| Available from version 1.6.0 Called before an edit is marked patrolled | |
| Define function: | public static function onMarkPatrolled( $rcid, User $user, $wcOnlySysopsCanPatrol, $auto, array &$tags ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"MarkPatrolled": "MyExtensionHooks::onMarkPatrolled"
}
}
|
| Called from: | File(s): changes/RecentChange.php Function(s): doMarkPatrolled |
| Interface: | MarkPatrolledHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:MarkPatrolled extensions.
Details
- $rcid: ID of the revision to be marked patrolled
- $user: the user (object) marking the revision as patrolled
- $wcOnlySysopsCanPatrol: always
falsesince git #fcd1cdeb93 / task T7282 - $auto: whether the edit is being marked as patrolled automatically (since gerrit:243821)
- &$tags: the tags that will be added to the patrol log entry (since gerrit:500176)
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.