aboutsummaryrefslogtreecommitdiffstats
path: root/doc/hook/attach_delete.bb
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-09-20 12:07:47 +0200
committerMario <mario@mariovavti.com>2018-09-20 12:07:47 +0200
commit3d713cee62d98bbb1cc95a0aeb8ed5cde7889150 (patch)
treed21b9052edb9fa90df88c58b71c19889d7400ba1 /doc/hook/attach_delete.bb
parentafd4da8f1173480e93c3578cf2f0a58c10caa299 (diff)
parentf2c59b3881d50dce907821054d9b79df4d009827 (diff)
downloadvolse-hubzilla-3d713cee62d98bbb1cc95a0aeb8ed5cde7889150.tar.gz
volse-hubzilla-3d713cee62d98bbb1cc95a0aeb8ed5cde7889150.tar.bz2
volse-hubzilla-3d713cee62d98bbb1cc95a0aeb8ed5cde7889150.zip
Merge branch 'hook-docs' into 'dev'
Document new hooks See merge request hubzilla/core!1278
Diffstat (limited to 'doc/hook/attach_delete.bb')
-rw-r--r--doc/hook/attach_delete.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/hook/attach_delete.bb b/doc/hook/attach_delete.bb
new file mode 100644
index 000000000..3b63f28d3
--- /dev/null
+++ b/doc/hook/attach_delete.bb
@@ -0,0 +1,11 @@
+[h2]attach_delete[/h2]
+
+Invoked when an attachment is deleted using attach_delete().
+
+[code]
+$arr = ['channel_id' => $channel_id, 'resource' => $resource, 'is_photo'=>$is_photo];
+call_hooks("attach_delete",$arr);
+[/code]
+
+
+See include/attach.php