Skip to content

Commit

Permalink
Refs #4642 need to filter annotations by name
Browse files Browse the repository at this point in the history
  • Loading branch information
cash committed Jul 1, 2012
1 parent d547dd1 commit c1621c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/groups/start.php
Expand Up @@ -943,6 +943,10 @@ function discussion_create_reply_notification($hook, $type, $message, $params) {
function discussion_reply_notifications($event, $type, $annotation) {
global $CONFIG, $NOTIFICATION_HANDLERS;

if ($annotation->name !== 'group_topic_post') {
return;
}

// Have we registered notifications for this type of entity?
$object_type = 'object';
$object_subtype = 'groupforumtopic';
Expand Down

0 comments on commit c1621c3

Please sign in to comment.