< Manual:Hooks
| EditPageCopyrightWarning | |
|---|---|
| Available from version 1.16.0 (r52361, codereview) Allow for site and per-namespace customization of contribution/copyright notice. | |
| Define function: | public static function onEditPageCopyrightWarning( $title, &$msg ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"EditPageCopyrightWarning": "MyExtensionHooks::onEditPageCopyrightWarning"
}
}
|
| Called from: | File(s): EditPage.php |
| Interface: | EditPageCopyrightWarningHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:EditPageCopyrightWarning extensions.
Details
- $title: title of page being edited
- &$msg: localization message name, overridable. Default is either 'copyrightwarning' or 'copyrightwarning2'
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.