Manual:Hooks/APIQuerySiteInfoGeneralInfo

From MediaWiki.org
Jump to: navigation, search
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:
$wgHooks['APIQuerySiteInfoGeneralInfo'][] = 'MyExtensionHooks::onAPIQuerySiteInfoGeneralInfo';
Called from: File(s): ApiQuerySiteInfo

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