< Manual:Hooks 
 
      | ExtensionTypes | |
|---|---|
| Available from version 1.17.0 Called when generating the extensions credits, use this to change the table's headers. | |
| 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.
Details
- &$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)
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.