MediaWiki master
MediaWiki\Hook\EditPageCopyrightWarningHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onEditPageCopyrightWarning ( $title, &$msg)
 Use this hook for site and per-namespace customization of contribution/copyright notice.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "EditPageCopyrightWarning" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file EditPageCopyrightWarningHook.php.

Member Function Documentation

◆ onEditPageCopyrightWarning()

MediaWiki\Hook\EditPageCopyrightWarningHook::onEditPageCopyrightWarning (   $title,
$msg 
)

Use this hook for site and per-namespace customization of contribution/copyright notice.

Since
1.35
Parameters
Title$titleTitle of page being edited
array&$msgAn array of arguments to wfMessage(), overridable. The default is an array containing either 'copyrightwarning' or 'copyrightwarning2' as the first element (the message key).
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: