Jump to content

Extension:CentralAuth/Hooks/CentralAuthWikiList

From mediawiki.org
CentralAuthWikiList
Available from version 1.13.0
Get the list of wikis in which CentralAuth is active
Define function:
public static function onCentralAuthWikiList( ?array &$wikiList ) { ... }
Attach hook:
$wgHooks['CentralAuthWikiList'][] = 'MyExtensionHooks::onCentralAuthWikiList';
Called from:File(s): CentralAuth / includes/CentralAuthUser.php
Function(s): getWikiList

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

Parameters

[edit]
  • &$wikiList: An array of strings (string[]) representing a list of wikis. Defaults to null. When not set, $wgLocalDatabases will be used.