28 lines
868 B
PHP
28 lines
868 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
use MediaWiki\User\User;
|
|
|
|
/**
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
* Use the hook name "EmailUserPermissionsErrors" to register handlers implementing this interface.
|
|
*
|
|
* @ingroup Hooks
|
|
* @deprecated since 1.41 Handle the EmailUserAuthorizeSend hook instead.
|
|
*/
|
|
interface EmailUserPermissionsErrorsHook {
|
|
/**
|
|
* Use this hook to retrieve permissions errors for emailing a user.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param User $user The user who is trying to email another user.
|
|
* @param string $editToken The user's edit token.
|
|
* @param bool|string|array &$hookErr Out-param for the error. Passed as the parameters to
|
|
* OutputPage::showErrorPage.
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onEmailUserPermissionsErrors( $user, $editToken, &$hookErr );
|
|
}
|