MediaWiki REL1_40
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\Api\ApiHookRunner.
Public Member Functions | |
onApiOptions ( $apiModule, $user, $changes, $resetKinds) | |
This hook is called by action=options before applying changes to user preferences. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ApiOptions" to register handlers implementing this interface.
Definition at line 15 of file ApiOptionsHook.php.
MediaWiki\Api\Hook\ApiOptionsHook::onApiOptions | ( | $apiModule, | |
$user, | |||
$changes, | |||
$resetKinds ) |
This hook is called by action=options before applying changes to user preferences.
ApiOptions | $apiModule | Calling ApiOptions object |
User | $user | User object whose preferences are being changed |
array | $changes | Associative array of preference name => value |
string[] | $resetKinds | Array of strings specifying which options kinds to reset See User::resetOptions() and User::getOptionKinds() for possible values. |
Implemented in MediaWiki\Api\ApiHookRunner.