Manual:Hooks/MarkPatrolled
From MediaWiki.org
| MarkPatrolled | |
|---|---|
| Available from version 1.6.0 Called before an edit is marked patrolled |
|
Define function: |
public static function onMarkPatrolled( $rcid, $user, $wcOnlySysopsCanPatrol ) { ... }
|
Attach hook: |
$wgHooks['MarkPatrolled'][] = 'MyExtensionHooks::onMarkPatrolled'; |
| Called from: | RecentChange.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:MarkPatrolled extensions.
Details [edit]
- $rcid: ID of the revision to be marked patrolled
- $user: the user (object) marking the revision as patrolled
- $wcOnlySysopsCanPatrol: config setting indicating whether the user needs to be a sysop in order to mark an edit patrolled
