< Extension:Echo < Hooks
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
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.