< Extension:Echo < Hooks
EchoGetNotificationTypes
Available from version ??? (gerrit:10679)

Define function:
public static function onEchoGetNotificationTypes( User $user, EchoEvent $event, array &$notifyTypes ) { ... }
Attach hook:
$wgHooks['EchoGetNotificationTypes'][] = 'MyExtensionHooks::onEchoGetNotificationTypes';
Called from:File(s): Echo / includes/controller/NotificationController.php
Function(s): notify

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

Details

  • $user: A User object
  • $event: An EchoEvent object
  • &$notifyTypes: An array (string[]) of notification types
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.