Jump to content

Manual:Hooks/AddNewAccountApiResult

From mediawiki.org
AddNewAccountApiResult
Available from version 1.23.0 (Gerrit change 106844)
Removed in version 1.27.0
Modifies the API output when an account is created via the API.
Define function:
public static function onAddNewAccountApiResult( $apiModule, $loginForm, &$result ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"AddNewAccountApiResult": "MediaWiki\\Extension\\MyExtension\\Hooks::onAddNewAccountApiResult"
	}
}
Called from: File(s): api/ApiCreateAccount.php
Interface: AddNewAccountApiResultHook.php

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