Manual:Hooks/MarkPatrolled

From MediaWiki.org
Jump to: navigation, search
MarkPatrolled
Available from version 1.6.0
Called before an edit is marked patrolled

*Define function:
function fnMyHook( $rcid, $user, $wcOnlySysopsCanPatrol ) { ... }

*Attach hook:
$wgHooks['MarkPatrolled'][] = 'MyExtensionHooks::someExample';
Called from: RecentChange.php

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


[edit] Details

  • $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
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox