Content-Length: 55883 | pFad | http://www.mediawiki.org/wiki/Manual:Hooks/TitleGetEditNotices

Manual:Hooks/TitleGetEditNotices - MediaWiki Jump to content

Manual:Hooks/TitleGetEditNotices

From mediawiki.org
TitleGetEditNotices
Available from version 1.22.0 (Gerrit change 75615)
Called when the edit notices for a page are being retrieved.
Define function:
public static function onTitleGetEditNotices( Title $title, int $oldid, array &$notices ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"TitleGetEditNotices": "MediaWiki\\Extension\\MyExtension\\Hooks::onTitleGetEditNotices"
	}
}
Called from: File(s): Title.php
Function(s): getEditNotices
Interface: TitleGetEditNoticesHook.php

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


Details

[edit]
  • $title: the title object of the page fetching its edit notices
  • $oldid: the version of the page being edited
  • $notices: an array containing the wikicode for the notices to be displayed in the page edit form








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.mediawiki.org/wiki/Manual:Hooks/TitleGetEditNotices

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy