diff options
author | Matt Beckett <beck24@gmail.com> | 2012-06-29 00:50:32 -0600 |
---|---|---|
committer | Matt Beckett <beck24@gmail.com> | 2012-06-29 00:50:32 -0600 |
commit | 6b8a7db8e582f0975a7c913bf4bd7d152f1d81e3 (patch) | |
tree | b3caebdfa1da1e3b53bfef0be16cb68adb3cbd28 /mod | |
parent | 5f89696ee75400f59ad895758efe046ed8fbe87f (diff) | |
download | elgg-6b8a7db8e582f0975a7c913bf4bd7d152f1d81e3.tar.gz elgg-6b8a7db8e582f0975a7c913bf4bd7d152f1d81e3.tar.bz2 |
fixes plugin hook for friend collections notifications
Diffstat (limited to 'mod')
-rw-r--r-- | mod/notifications/start.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/notifications/start.php b/mod/notifications/start.php index d5d418f0f..b76b0aa1e 100644 --- a/mod/notifications/start.php +++ b/mod/notifications/start.php @@ -25,7 +25,7 @@ function notifications_plugin_init() { // update notifications when new friend or access collection membership elgg_register_event_handler('create', 'friend', 'notifications_update_friend_notify'); - elgg_register_plugin_hook_handler('access:collections:add-user', 'collection', 'notifications_update_collection_notify'); + elgg_register_plugin_hook_handler('access:collections:add_user', 'collection', 'notifications_update_collection_notify'); $actions_base = elgg_get_plugins_path() . 'notifications/actions'; elgg_register_action("notificationsettings/save", "$actions_base/save.php"); @@ -194,7 +194,7 @@ function notifications_update_collection_notify($event, $object_type, $returnval } if (in_array($collection_id, $collections_preferences)) { // notifications are on for this collection so we add/remove - if ($event == 'access:collections:add-user') { + if ($event == 'access:collections:add_user') { add_entity_relationship($user->guid, "notify$method", $member_guid); } elseif ($event == 'access:collections:remove_user') { // removing someone from an access collection is not a guarantee |