From fe739aac71154ecc5dbf6fbe3350c640a4c9d5cf Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 1 May 2014 16:21:58 -0400 Subject: [PATCH] updated hooks docs --- docs/plugins/hooks.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst index f560bf6e0a..eb64dd8bca 100644 --- a/docs/plugins/hooks.rst +++ b/docs/plugins/hooks.rst @@ -182,4 +182,12 @@ Executed whenever a post is created or edited, after it is saved into the databa ``action:user.set`` ^^^^^^^^^^^^^^^^^^^^^ -Useful for things like awarding badges or achievements after a user has reached some value (ex. 100 posts) \ No newline at end of file +Parameters: field (str), value, type ('set', 'increment', or 'decrement') +Useful for things like awarding badges or achievements after a user has reached some value (ex. 100 posts) + +``action:settings.set`` +^^^^^^^^^^^^^^^^^^^^^ +Parameters: hash (str), object (obj) +Useful if your plugins want to cache settings instead of pulling from DB everytime a method is called. Listen to this and refresh accordingly. + +