Manual:Hooks/EchoGetBundleRules

From MediaWiki.org
Jump to: navigation, search
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): Notifier.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