aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Plugins.md
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2012-04-08 23:20:31 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2012-04-09 21:22:09 +0200
commit1f9fe8b5eeebfb6bc1275cba7dbb4daac1a2e910 (patch)
tree422051d2f57a2fb1be7be3cac9fef274d062d819 /doc/Plugins.md
parent93ffba58cc10fc793821ba16de88cdfb271ea5b8 (diff)
downloadvolse-hubzilla-1f9fe8b5eeebfb6bc1275cba7dbb4daac1a2e910.tar.gz
volse-hubzilla-1f9fe8b5eeebfb6bc1275cba7dbb4daac1a2e910.tar.bz2
volse-hubzilla-1f9fe8b5eeebfb6bc1275cba7dbb4daac1a2e910.zip
Remove Gravatar from core and add new hook avatar_lookup.
This patch removes all occurances of Gravatar from friendica's core and adds a new hook "avatar_lookup" inside the function avatar_img($email) where the new *avatar-plugins should hook in. I haven't touched the language files yet. Are they updated automatically somehow?
Diffstat (limited to 'doc/Plugins.md')
-rw-r--r--doc/Plugins.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/Plugins.md b/doc/Plugins.md
index 29dff3187..df6004450 100644
--- a/doc/Plugins.md
+++ b/doc/Plugins.md
@@ -164,10 +164,15 @@ Your module functions will often contain the function plugin_name_content(&$a),
**'init_1'** - called just after DB has been opened and before session start
$b is not used or passed
-
**'page_end'** - called after HTML content functions have completed
$b is (string) HTML of content div
+**'avatar_lookup'** - called when looking up the avatar
+ $b is (array)
+ 'size' => the size of the avatar that will be looked up
+ 'email' => email to look up the avatar for
+ 'url' => the (string) generated URL of the avatar
+
A complete list of all hook callbacks with file locations (generated 14-Feb-2012): Please see the source for details of any hooks not documented above.