Manual:Hooks/EditPageTosSummary

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:
public static function onEditPageTosSummary( $title, &$msg ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"EditPageTosSummary": "MyExtensionHooks::onEditPageTosSummary"
	}
}
Called from: File(s): EditPage.php
Interface: EditPageTosSummaryHook.php

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


DetailsEdit

  • $title: title of page being edited
  • &$msg: localization message name, overridable. Default is 'editpage-tos-summary'