Manual:Hooks/MarkPatrolled

From Linux Web Expert

MarkPatrolled
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Called before an edit is marked patrolled
<translate> Define function:</translate>
public static function onMarkPatrolled( $rcid, User $user, $wcOnlySysopsCanPatrol, $auto, array &$tags ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"MarkPatrolled": "MediaWiki\\Extension\\MyExtension\\Hooks::onMarkPatrolled"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> changes/RecentChange.php
<translate> Function(s):</translate> doMarkPatrolled
<translate> Interface:</translate> MarkPatrolledHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:MarkPatrolled extensions</tvar>.</translate>


Details