Extension:Moderation/Hooks/ModerationIntercept
Appearance
From mediawiki.org
ModerationIntercept
Define function:
public static function onModerationIntercept( WikiPage $page, User $user, Content $content, $summary, $is_minor, $is_watch, $section, $flags, Status $status ) { ... }
Attach hook:
$wgHooks['ModerationIntercept'][] = 'MyExtensionHooks::onModerationIntercept';
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:ModerationIntercept extensions.
Details
[edit ]When non-automoderated user makes an edit, Extension:Moderation calls this hook before starting to queue this edit for moderation.
- If the hook returns false, this edit will be applied immediately (completely bypassing Moderation).
- If the hook returns true, Moderation will intercept the edit.
Arguments are the same as in PageContentSave hook.