Extension:Echo/Hooks/BeforeCreateEchoEvent
Appearance
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
[edit]- &$echoNotifications: Array, for custom Echo event
- &$echoNotificationCategories: Array, for custom Echo categories
- &$echoNotificationIcons: Array, replace or add custom icons