नियमावली:आंकड़े/विस्तारण के प्ररूप

This page is a translated version of the page Manual:Hooks/ExtensionTypes and the translation is 75% complete.
Other languages:
English • ‎Türkçe • ‎français • ‎italiano • ‎हिन्दी • ‎中文 • ‎日本語
ExtensionTypes
Available from version 1.17.0
इसका उपयोग तालिका हेडर के परिवर्तन करने के लिए विस्तारण क्रेडिट्स के उत्पादन के समय किया जाता
Define function:
public static function onExtensionTypes( array &$extTypes ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ExtensionTypes": "MyExtensionHooks::onExtensionTypes"
	}
}
Called from:File(s): specials/SpecialVersion.php
Interface:ExtensionTypesHook.php

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

विवरण

  • &$extTypes - associative array of extensions types, the keys are the strings you use as key in $wgExtensionCredits, the values are the messages as displayed on Special:Version (ie something coming from wfMessage)