Manual:Hooks/APIQuerySiteInfoStatisticsInfo

From MediaWiki.org
Jump to: navigation, search
APIQuerySiteInfoStatisticsInfo
Available from version 1.22.0
Used to add extra information to the SiteInfo statistics information output
Define function:
public static function onAPIQuerySiteInfoStatisticsInfo( &$result ) { ... }
Attach hook:
$wgHooks['APIQuerySiteInfoStatisticsInfo'][] = 'MyExtensionHooks::onAPIQuerySiteInfoStatisticsInfo';
Called from: File(s): ApiQuerySiteInfo

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

Details[edit]

  • &$result: Result array for extra information to be added to