< Manual:Hooks
EditPageTosSummary
Available from version 1.16.0 (r52361, codereview)
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.

Details

  • $title: title of page being edited
  • &$msg: localization message name, overridable. Default is 'editpage-tos-summary'
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.