Open main menu

Manual:Hooks/MarkPatrolledComplete

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": "MyExtensionHooks::onMarkPatrolledComplete"
	}
}

For MediaWiki ≤1.25:

$wgHooks['MarkPatrolledComplete'][] = 'MyExtensionHooks::onMarkPatrolledComplete';
Called from:File(s): RecentChange.php

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

DetailsEdit

  • $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