Merge "Add new $icons parameter to Echo hook:"

This commit is contained in:
jenkins-bot 2013-04-29 06:12:47 +00:00 committed by Gerrit Code Review
commit 8b8c1057c8

View file

@ -107,17 +107,18 @@ class ThanksHooks {
} }
/** /**
* Add extension event to $wgEchoEnabledEvents * Add Thanks events to Echo
* @param $wgEchoEnabledEvents array a list of enabled echo events *
* @param $wgEchoEventDetails array details for echo events * @param $notifications array of Echo notifications
* @return bool * @param $notificationCategories array of Echo notification categories
* @param $icons array of icon details
*/ */
public static function onBeforeCreateEchoEvent( &$wgEchoNotifications, &$wgEchoNotificationCategories ) { public static function onBeforeCreateEchoEvent( &$notifications, &$notificationCategories, &$icons ) {
$wgEchoNotificationCategories['edit-thank'] = array( $notificationCategories['edit-thank'] = array(
'priority' => 3, 'priority' => 3,
); );
$wgEchoNotifications['edit-thank'] = array( $notifications['edit-thank'] = array(
'category' => 'edit-thank', 'category' => 'edit-thank',
'group' => 'interactive', 'group' => 'interactive',
'formatter-class' => 'EchoThanksFormatter', 'formatter-class' => 'EchoThanksFormatter',