Extension:Echo/Hooks/BeforeCreateEchoEvent

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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