Extension:Moderation/Hooks/ModerationIntercept

From Linux Web Expert

ModerationIntercept
Available from version 1.27.0
Allows to stop Extension:Moderation from intercepting an edit
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';
Called from:File(s): Moderation / hooks/ModerationEditHooks.php
Function(s): onPageContentSave

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

Details

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.