Manual:Hooks/EditPageTosSummary

From MediaWiki.org
Jump to: navigation, search
EditPageTosSummary
Available from version 1.16.0 (r52361)
Give a chance for site and per-namespace customizations of terms of service summary link that might exist separately from the copyright notice.

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

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

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


[edit] Details

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