手册:钩子/ExtensionTypes

This page is a translated version of the page Manual:Hooks/ExtensionTypes and the translation is 50% complete.
Other languages:
English • ‎Türkçe • ‎français • ‎italiano • ‎हिन्दी • ‎中文 • ‎日本語
ExtensionTypes
version 1.17.0 版可用
Called when generating the extensions credits, use this to change the tables headers.
定义函数:
public static function onExtensionTypes( array &$extTypes ) { ... }
附加钩子:

extension.json中:

{
	"Hooks": {
		"ExtensionTypes": "MyExtensionHooks::onExtensionTypes"
	}
}
调用自:文件: specials/SpecialVersion.php
Interface:ExtensionTypesHook.php

更多有关附加钩子的信息,请参见手册:钩子
有关使用此钩子的扩展示例,请参见Category:ExtensionTypes extensions/zh

详情

  • &$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)