GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Manual:Hooks/APIQuerySiteInfoGeneralInfo - MediaWiki

< Manual:Hooks
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

  • $module: ApiQuerySiteInfo module.
  • &$result: Result array for extra information to be added to.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/APIQuerySiteInfoGeneralInfo&oldid=8241189"
Categories:
  • MediaWiki hooks
  • Hooks added in MediaWiki 1.18.0
  • MediaWiki hooks included in ApiQuerySiteinfo.php
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.