25 lines
648 B
PHP
25 lines
648 B
PHP
<?php
|
|
|
|
namespace MediaWiki\User\Hook;
|
|
|
|
use User;
|
|
|
|
/**
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
* Use the hook name "UserLoadOptions" to register handlers implementing this interface.
|
|
*
|
|
* @deprecated since 1.37 use LoadUserOptionsHook instead.
|
|
* @ingroup Hooks
|
|
*/
|
|
interface UserLoadOptionsHook {
|
|
/**
|
|
* This hook is called when user options/preferences are being loaded from the database.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param User $user
|
|
* @param array &$options Options, can be modified.
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onUserLoadOptions( $user, &$options );
|
|
}
|