mod/gc_group_layout/actions/groups/edit.php 1 location
|
@@ 278-282 (lines=5) @@
|
| 275 |
|
} |
| 276 |
|
|
| 277 |
|
// cyu - 05/12/2016: modified to comform to the business requirements documentation |
| 278 |
|
if (elgg_is_active_plugin('cp_notifications')) { |
| 279 |
|
$user = elgg_get_logged_in_user_entity(); |
| 280 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_email', $group->getGUID()); |
| 281 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_site_mail', $group->getGUID()); |
| 282 |
|
} |
| 283 |
|
|
| 284 |
|
system_message(elgg_echo("groups:saved")); |
| 285 |
|
|
mod/gc_onboard/actions/groups/membership/join.php 1 location
|
@@ 44-48 (lines=5) @@
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
// cyu - 05/12/2016: modified to comform to the business requirements documentation |
| 44 |
|
if (elgg_is_active_plugin('cp_notifications')) { |
| 45 |
|
$user = elgg_get_logged_in_user_entity(); |
| 46 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_email', $group->getGUID()); |
| 47 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_site_mail', $group->getGUID()); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
system_message(elgg_echo("groups:joined")); |
| 51 |
|
|
mod/group_tools/actions/groups/edit.php 1 location
|
@@ 271-275 (lines=5) @@
|
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
// cyu - 05/12/2016: modified to comform to the business requirements documentation |
| 271 |
|
if (elgg_is_active_plugin('cp_notifications')) { |
| 272 |
|
$user = elgg_get_logged_in_user_entity(); |
| 273 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_email', $group->getGUID()); |
| 274 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_site_mail', $group->getGUID()); |
| 275 |
|
} |
| 276 |
|
|
| 277 |
|
system_message(elgg_echo("groups:saved")); |
| 278 |
|
|
mod/group_tools/actions/groups/invite.php 1 location
|
@@ 184-187 (lines=4) @@
|
| 181 |
|
|
| 182 |
|
// cyu - 05/12/2016: modified to comform to the business requirements documentation |
| 183 |
|
// please note that this file is overwritting groups and group_tools |
| 184 |
|
if (elgg_is_active_plugin('cp_notifications')) { |
| 185 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_email', $group->getGUID()); |
| 186 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_site_mail', $group->getGUID()); |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
system_message(elgg_echo("group_tools:action:invite:success:add", array($join, $already_invited, $member))); |
| 190 |
|
} |
mod/groups/actions/groups/edit.php 1 location
|
@@ 304-308 (lines=5) @@
|
| 301 |
|
|
| 302 |
|
// cyu - 05/12/2016: modified to comform to the business requirements documentation |
| 303 |
|
// please note that, this action file is overwritten by group tools (if applicable) |
| 304 |
|
if (elgg_is_active_plugin('cp_notifications')) { |
| 305 |
|
$user = elgg_get_logged_in_user_entity(); |
| 306 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_email', $group->getGUID()); |
| 307 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_site_mail', $group->getGUID()); |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
system_message(elgg_echo("groups:saved")); |
| 311 |
|
|
mod/groups/actions/groups/membership/add.php 1 location
|
@@ 60-63 (lines=4) @@
|
| 57 |
|
|
| 58 |
|
// cyu - 05/12/2016: modified to comform to the business requirements documentation |
| 59 |
|
// please note that this file is overwritten by group_tools and wet4 plugin (if applicable) |
| 60 |
|
if (elgg_is_active_plugin('cp_notifications')) { |
| 61 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_email', $group->getGUID()); |
| 62 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_site_mail', $group->getGUID()); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
system_message(elgg_echo('groups:addedtogroup')); |
| 66 |
|
} else { |
mod/groups/actions/groups/membership/join.php 1 location
|
@@ 44-48 (lines=5) @@
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
// cyu - 05/12/2016: modified to comform to the business requirements documentation |
| 44 |
|
if (elgg_is_active_plugin('cp_notifications')) { |
| 45 |
|
$user = elgg_get_logged_in_user_entity(); |
| 46 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_email', $group->getGUID()); |
| 47 |
|
add_entity_relationship($user->getGUID(), 'cp_subscribed_to_site_mail', $group->getGUID()); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
system_message(elgg_echo("groups:joined")); |
| 51 |
|
forward(REFERER); //changed from $group->getURL() - Ethan 08/24/2016 |
mod/gc_mobile_api/models/group.php 1 location
|
@@ 803-807 (lines=5) @@
|
| 800 |
|
|
| 801 |
|
|
| 802 |
|
// cyu - 05/12/2016: modified to comform to the business requirements documentation |
| 803 |
|
if (elgg_is_active_plugin('cp_notifications')) { |
| 804 |
|
$user_entity = elgg_get_logged_in_user_entity(); |
| 805 |
|
add_entity_relationship($user_entity->getGUID(), 'cp_subscribed_to_email', $group->getGUID()); |
| 806 |
|
add_entity_relationship($user_entity->getGUID(), 'cp_subscribed_to_site_mail', $group->getGUID()); |
| 807 |
|
} |
| 808 |
|
|
| 809 |
|
return elgg_echo("groups:joined"); |
| 810 |
|
} else { |