Extension:TorBlock/Hooks/TorBlockBlockedMsg

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
TorBlockBlockedMsg
Available from version ??? (Gerrit change 84331)
Allows site customization of blocked message
Define function:
public static function onTorBlockBlockedMsg( string &$blockedMsg ) { ... }
Attach hook:
$wgHooks['TorBlockBlockedMsg'][] = 'MyExtensionHooks::onTorBlockBlockedMsg';
Called from:File(s): TorBlock / includes/TorBlockHooks.php
Function(s): onGetUserPermissionsErrorsExpensive, onEmailUserPermissionsErrors

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

Parameters

  • &$blockedMsg: A string representing an i18n message key. This defaults to 'torblock-blocked'.