diff options
author | Mario <mario@mariovavti.com> | 2018-09-17 11:00:22 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-09-17 11:00:22 +0200 |
commit | 0b12a7e66fc8f9489fcbf1c108f61e5ac6283605 (patch) | |
tree | 341945c6ce7ac735e002c881d47bf35d13ead65a /include | |
parent | 3019d8341d67c4fdbdc77e8a77db357e48f3e27d (diff) | |
parent | abe35817cd4f81c2d9c8305573c5fa5cbe154095 (diff) | |
download | volse-hubzilla-0b12a7e66fc8f9489fcbf1c108f61e5ac6283605.tar.gz volse-hubzilla-0b12a7e66fc8f9489fcbf1c108f61e5ac6283605.tar.bz2 volse-hubzilla-0b12a7e66fc8f9489fcbf1c108f61e5ac6283605.zip |
Merge branch 'delete-attach-hook' into 'dev'
delete_attach hook
See merge request hubzilla/core!1275
Diffstat (limited to 'include')
-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; |