Extension:Echo/Hooks/EchoGetDefaultNotifiedUsers

From Linux Web Expert

Revision as of 18:54, 19 March 2020 by imported>Shirayuki (fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

EchoGetDefaultNotifiedUsers
Available from version ???
Allows determining which users get notified for which type of event
Define function:
public static function onEchoGetDefaultNotifiedUsers( EchoEvent $event, array &$users ) { ... }
Attach hook:
$wgHooks['EchoGetDefaultNotifiedUsers'][] = 'MyExtensionHooks::onEchoGetDefaultNotifiedUsers';
Called from:File(s): Echo / NotificationController.php
Function(s): getUsersToNotifyForEvent

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

Details

  • $event: EchoEvent object
  • &$users: Array of User objects