aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-29 19:02:48 -0700
committerCash Costello <cash.costello@gmail.com>2012-06-29 19:02:48 -0700
commit0288907a2989db16408eba3018668d07c7626cdd (patch)
treed26c8ccffe931e4f811a1fabef0868446d17956d /mod/notifications
parent919cc3b9cc851d7746f7cecce09670ebfd87bd85 (diff)
parent6b8a7db8e582f0975a7c913bf4bd7d152f1d81e3 (diff)
downloadelgg-0288907a2989db16408eba3018668d07c7626cdd.tar.gz
elgg-0288907a2989db16408eba3018668d07c7626cdd.tar.bz2
Merge pull request #289 from beck24/acl-notifications-hook
Fixed plugin hook used for updating notifications
Diffstat (limited to 'mod/notifications')
-rw-r--r--mod/notifications/start.php4
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