Extension:Echo/Hooks/BeforeCreateEchoEvent

From Linux Web Expert

Revision as of 19:32, 6 November 2020 by imported>Shirayuki (Undo revision 4221550 by Shirayuki (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

BeforeCreateEchoEvent
Available from version ??? (Gerrit change 29436)
Allows registration of custom Echo events
Define function:
public static function onBeforeCreateEchoEvent( &$echoNotifications, &$echoNotificationCategories, &$echoNotificationIcons ) { ... }
Attach hook:
$wgHooks['BeforeCreateEchoEvent'][] = 'MyExtensionHooks::onBeforeCreateEchoEvent';
Called from:File(s): Echo / includes/EchoHooks.php
Function(s): initEchoExtension

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

Details

  • &$echoNotifications: Array, for custom Echo event
  • &$echoNotificationCategories: Array, for custom Echo categories
  • &$echoNotificationIcons: Array, replace or add custom icons

See also