From 62a070f69c13648b42a56b96e436caea33c0df12 Mon Sep 17 00:00:00 2001 From: Matthew Flaschen Date: Mon, 29 Apr 2013 00:53:49 -0400 Subject: [PATCH] Add new $icons parameter to Echo hook: * Update doc block * Use names that indicate the variables are passed in, not used as globals. Bug: 46585 Change-Id: I0f15498ab1fba239bce141b178340a9d9984bedf --- Thanks.hooks.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Thanks.hooks.php b/Thanks.hooks.php index 1c280c85..c802f729 100644 --- a/Thanks.hooks.php +++ b/Thanks.hooks.php @@ -88,17 +88,18 @@ class ThanksHooks { } /** - * Add extension event to $wgEchoEnabledEvents - * @param $wgEchoEnabledEvents array a list of enabled echo events - * @param $wgEchoEventDetails array details for echo events - * @return bool + * Add Thanks events to Echo + * + * @param $notifications array of Echo notifications + * @param $notificationCategories array of Echo notification categories + * @param $icons array of icon details */ - public static function onBeforeCreateEchoEvent( &$wgEchoNotifications, &$wgEchoNotificationCategories ) { - $wgEchoNotificationCategories['edit-thank'] = array( + public static function onBeforeCreateEchoEvent( &$notifications, &$notificationCategories, &$icons ) { + $notificationCategories['edit-thank'] = array( 'priority' => 3, ); - $wgEchoNotifications['edit-thank'] = array( + $notifications['edit-thank'] = array( 'category' => 'edit-thank', 'group' => 'interactive', 'formatter-class' => 'EchoThanksFormatter',