MediaWiki REL1_35
MediaWiki\Hook\ProtectionForm__saveHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\ProtectionForm__saveHook:

Public Member Functions

 onProtectionForm__save ( $article, &$errorMsg, $reasonstr)
 This hook is called when a protection form is submitted.
 

Detailed Description

Stable to implement.

Definition at line 12 of file ProtectionForm__saveHook.php.

Member Function Documentation

◆ onProtectionForm__save()

MediaWiki\Hook\ProtectionForm__saveHook::onProtectionForm__save (   $article,
$errorMsg,
  $reasonstr 
)

This hook is called when a protection form is submitted.

Since
1.35
Parameters
Article$articlePage being (un)protected
string | array&$errorMsgHTML message string of an error or an array of message name and its parameters
string$reasonstrString describing the reason page protection level is altered
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: