From 2563edab43a40d5f6473b4a85ef40509813b6435 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 29 Nov 2013 00:57:33 -0800 Subject: doc updates --- doc/html/plugin_8php.html | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'doc/html/plugin_8php.html') diff --git a/doc/html/plugin_8php.html b/doc/html/plugin_8php.html index a7ec08409..6d293b3a8 100644 --- a/doc/html/plugin_8php.html +++ b/doc/html/plugin_8php.html @@ -128,6 +128,8 @@ Functions    load_hooks ()   + insert_hook ($hook, $fn) +   call_hooks ($name, &$data=null)    get_plugin_info ($plugin) @@ -418,6 +420,42 @@ Functions

Referenced by App\build_pagehead().

+ + + +
+
+ + + + + + + + + + + + + + + + + + +
insert_hook ( $hook,
 $fn 
)
+
+

insert_hook($hook,$fn)

+

Insert a short-lived hook into the running page request. Hooks are normally persistent so that they can be called across asynchronous processes such as delivery and poll processes.

+

insert_hook lets you attach a hook callback immediately which will not persist beyond the life of this page request or the current process.

+
Parameters
+ + + +
string$hook,;name of hook to attach callback
string$fn,;function name of callback handler
+
+
+
-- cgit v1.2.3