From MediaWiki.org
Jump to navigation Jump to search
Available from version 1.13.0
Get the list of wikis in which CentralAuth is active
Define function:
public static function onCentralAuthWikiList( &$wikiList ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"CentralAuthWikiList": "MyExtensionHooks::onCentralAuthWikiList"

For MediaWiki ≤1.25:

$wgHooks['CentralAuthWikiList'][] = 'MyExtensionHooks::onCentralAuthWikiList';
Called from:File(s): CentralAuthUser.php

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


  • &$wikiList: list of wikis
If $wikiList isn't changed, then $wgLocalDatabases is used.