diff options
author | DM42.Net (Matt Dent) <dentm42@dm42.net> | 2019-01-13 15:43:25 -0500 |
---|---|---|
committer | DM42.Net (Matt Dent) <dentm42@dm42.net> | 2019-01-13 15:43:25 -0500 |
commit | e43331b7a2c0136a9c576b4cc0391f66d469b4cd (patch) | |
tree | b0ae0ab239c6c03af2bca9b72023946f955476af /Zotlabs/Module | |
parent | dba9c2fbb01c3d9de1d25aeb7c86a9be0e5031cf (diff) | |
download | volse-hubzilla-e43331b7a2c0136a9c576b4cc0391f66d469b4cd.tar.gz volse-hubzilla-e43331b7a2c0136a9c576b4cc0391f66d469b4cd.tar.bz2 volse-hubzilla-e43331b7a2c0136a9c576b4cc0391f66d469b4cd.zip |
Add privacygroup_extras_post/drop hooks
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Group.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Zotlabs/Module/Group.php b/Zotlabs/Module/Group.php index 6f3d09662..8c5e4f943 100644 --- a/Zotlabs/Module/Group.php +++ b/Zotlabs/Module/Group.php @@ -75,6 +75,10 @@ class Group extends Controller { ); if($r) info( t('Privacy group updated.') . EOL ); + + $hookinfo = [ 'pgrp_extras' => '', 'group'=>$group['id'] ]; + call_hooks ('privacygroup_extras_post',$hookinfo); + build_sync_packet(local_channel(),null,true); } @@ -171,8 +175,11 @@ class Group extends Controller { ); if($r) $result = group_rmv(local_channel(),$r[0]['gname']); - if($result) + if($result) { + $hookinfo = [ 'pgrp_extras' => '', 'group'=>$argv(2) ]; + call_hooks ('privacygroup_extras_drop',$hookinfo); info( t('Privacy group removed.') . EOL); + } else notice( t('Unable to remove privacy group.') . EOL); } |