Manual:Hooks/EditPageTosSummary

From Linux Web Expert

EditPageTosSummary
<translate> Available from <tvar name=1><translate> version <tvar (r52361, codereview)</tvar></translate>
Give a chance for site and per-namespace customizations of terms of service summary link that might exist separately from the copyright notice.
<translate> Define function:</translate>
public static function onEditPageTosSummary( $title, &$msg ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"EditPageTosSummary": "MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageTosSummary"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> EditPage.php
<translate> Interface:</translate> EditPageTosSummaryHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:EditPageTosSummary extensions</tvar>.</translate>


Details

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