< Extension:Echo < Hooks
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
- Echo (Notifications)/Developer guide#Hook the notification into the Echo extension
- Echo (Notifications)/New formatter system
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.