Extension:Echo/Hooks/EchoGetBundleRules

EchoGetBundleRules
Available from version ??? (Gerrit change 52319)
Determines how the Echo notification should be bundled.
Define function:
public static function onEchoGetBundleRules( $event, &$bundleString ) { ... }
Attach hook:
$wgHooks['EchoGetBundleRules'][] = 'MyExtensionHooks::onEchoGetBundleRules';
Called from:File(s): Echo / Notifier.php, Notification.php
Function(s): notifyWithEmail

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

Details

edit
  • $event - your notification type
  • &$bundleString - determines which messages go into which bundle, so for the same bundle, return the same $bundleString