Manual:Hooks/EditPageTosSummary
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": "MediaWiki\\Extension\\MyExtension\\Hooks::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
edit- $title: title of page being edited
- &$msg: localization message name, overridable. Default is 'editpage-tos-summary'