Extension:Echo/Hooks/EchoGetBundleRules

From Linux Web Expert

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

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

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