diff options
author | M.Dent (DM42.Net) <dentm42@gmail.com> | 2018-09-15 23:09:16 -0400 |
---|---|---|
committer | M.Dent (DM42.Net) <dentm42@gmail.com> | 2018-09-15 23:09:16 -0400 |
commit | abe35817cd4f81c2d9c8305573c5fa5cbe154095 (patch) | |
tree | 826e24e9c5b10bc182558a930780a782d0973750 /include/attach.php | |
parent | 791ff25d52c7f7e95758f1218a1621012b15be7c (diff) | |
download | volse-hubzilla-abe35817cd4f81c2d9c8305573c5fa5cbe154095.tar.gz volse-hubzilla-abe35817cd4f81c2d9c8305573c5fa5cbe154095.tar.bz2 volse-hubzilla-abe35817cd4f81c2d9c8305573c5fa5cbe154095.zip |
Add attach_delete hook
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php index 202412263..4db5bc435 100644 --- a/include/attach.php +++ b/include/attach.php @@ -1428,6 +1428,8 @@ function attach_delete($channel_id, $resource, $is_photo = 0) { if(! $r) { attach_drop_photo($channel_id,$resource); + $arr = ['channel_id' => $channel_id, 'resource' => $resource, 'is_photo'=>$is_photo]; + call_hooks("attach_delete",$arr); return; } @@ -1486,6 +1488,9 @@ function attach_delete($channel_id, $resource, $is_photo = 0) { intval($channel_id) ); + $arr = ['channel_id' => $channel_id, 'resource' => $resource, 'is_photo'=>$is_photo]; + call_hooks("attach_delete",$arr); + file_activity($channel_id, $object, $object['allow_cid'], $object['allow_gid'], $object['deny_cid'], $object['deny_gid'], 'update', true); return; |