aboutsummaryrefslogtreecommitdiffstats
path: root/doc/hook
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-19 16:31:35 -0700
committerzotlabs <mike@macgirvin.com>2016-10-19 16:31:35 -0700
commitc79c1b391331ab7c8c0f01265a627ffae23d54e2 (patch)
tree66d988e77e1af2b8695a9726a76fc7d5743a69a6 /doc/hook
parent716a83d1f77e2d6f26b25ab03ffe130c11ef7feb (diff)
parentb926a4c67e4d7dcba01df91dddcc047abde246bb (diff)
downloadvolse-hubzilla-c79c1b391331ab7c8c0f01265a627ffae23d54e2.tar.gz
volse-hubzilla-c79c1b391331ab7c8c0f01265a627ffae23d54e2.tar.bz2
volse-hubzilla-c79c1b391331ab7c8c0f01265a627ffae23d54e2.zip
Merge branch 'dev' into pdo
Diffstat (limited to 'doc/hook')
-rw-r--r--doc/hook/get_photo.bb14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/hook/get_photo.bb b/doc/hook/get_photo.bb
new file mode 100644
index 000000000..eaf3beffb
--- /dev/null
+++ b/doc/hook/get_photo.bb
@@ -0,0 +1,14 @@
+[h2]get_photo[/h2]
+
+Called when fetching the content of photos (except for profile photos) in mod_photo.
+
+
+Hook arguments:
+
+'imgscale' => integer resolution requested
+'resource_id' => resource_id of requested photo
+'photo' => array of matching photo table rows after querying for the photo
+'allowed' => whether or not access to this resource is allowed
+
+
+