# HG changeset patch # User Myhailo Danylenko # Date 1350151044 -10800 # Node ID 832ded5b44c90951df32c1e8c9f50598571a6b53 # Parent 4fda19d05965c8bf0e3dd7a20664f7d4edd67ff7 Update api diff -r 4fda19d05965 -r 832ded5b44c9 docs/api.mdwn --- a/docs/api.mdwn Sat Oct 13 20:57:03 2012 +0300 +++ b/docs/api.mdwn Sat Oct 13 20:57:24 2012 +0300 @@ -282,6 +282,12 @@ **Arguments:** table (arguments hash) **Return values:** [hook handler result](#hook.handler.result) + +### main.hook_run +Runs handlers for given hook with supplied arguments. +**Arguments:** string (hook name), table (hook arguments) +**Return values:** [return enum field](#return.enum.field) ([hook handler result](#hook.handler.result)) + ### main.hook Installs hook handler, returns an object, that you need to keep until