Jump to content

Manual:Hooks/APIQuerySiteInfoGeneralInfo

From mediawiki.org
APIQuerySiteInfoGeneralInfo
Available from version 1.18.0
Used to add extra information to the SiteInfo general information output
Define function:
public static function onAPIQuerySiteInfoGeneralInfo( $module, &$result ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"APIQuerySiteInfoGeneralInfo": "MediaWiki\\Extension\\MyExtension\\Hooks::onAPIQuerySiteInfoGeneralInfo"
	}
}
Called from: File(s): api/ApiQuerySiteinfo.php
Interface: APIQuerySiteInfoGeneralInfoHook.php

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


Details

[edit]
  • $module: ApiQuerySiteInfo module.
  • &$result: Result array for extra information to be added to.