Manual:Hooks/EditPageCopyrightWarning

From MediaWiki.org
Jump to: navigation, search
EditPageCopyrightWarning
Available from version 1.16.0 (r52361)
Allow for site and per-namespace customization of contribution/copyright notice.

*Define function:
function fnMyHook( $title, &$msg ) { ... }

*Attach hook:
$wgHooks['EditPageCopyrightWarning'][] = 'MyExtensionHooks::someExample';
Called from: EditPage.php

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


[edit] Details

  • $title: title of page being edited
  • &$msg: localization message name, overridable. Default is either 'copyrightwarning' or 'copyrightwarning2'
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox