MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onEditFilterMergedContent ( $context, $content, $status, $summary, $user, $minoredit) | |
Use this hook for a post-section-merge edit filter. | |
Stable to implement.
Definition at line 14 of file EditFilterMergedContentHook.php.
MediaWiki\Hook\EditFilterMergedContentHook::onEditFilterMergedContent | ( | $context, | |
$content, | |||
$status, | |||
$summary, | |||
$user, | |||
$minoredit | |||
) |
Use this hook for a post-section-merge edit filter.
This may be triggered by the EditPage or any other facility that modifies page content. Use the $status object to indicate whether the edit should be allowed and to provide a reason for disallowing it. $status->apiHookResult can be set to an array to be returned by api.php action=edit. This is used to deliver captchas.
IContextSource | $context | |
Content | $content | Content of the edit box |
Status | $status | Status object to represent errors, etc. |
string | $summary | Edit summary for page |
User | $user | User whois performing the edit |
bool | $minoredit | Whether the edit was marked as minor by the user. |
Implemented in MediaWiki\HookContainer\HookRunner.