]> git.mxchange.org Git - friendica.git/blobdiff - doc/Plugins.md
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / doc / Plugins.md
index a30a3f4a71fe1db2f95815ce75717ff69439024e..6460fd5a09459bf6fe57f3dcf1fab6403de1b2de 100644 (file)
@@ -77,9 +77,9 @@ This will include:
     $a->argc = 3
     $a->argv = array(0 => 'plugin', 1 => 'arg1', 2 => 'arg2');
 
-Your module functions will often contain the function plugin_name_content(&$a), which defines and returns the page body content.
-They may also contain plugin_name_post(&$a) which is called before the _content function and typically handles the results of POST forms.
-You may also have plugin_name_init(&$a) which is called very early on and often does module initialisation.
+Your module functions will often contain the function plugin_name_content(App &$a), which defines and returns the page body content.
+They may also contain plugin_name_post(App &$a) which is called before the _content function and typically handles the results of POST forms.
+You may also have plugin_name_init(App &$a) which is called very early on and often does module initialisation.
 
 Templates
 ---
@@ -281,6 +281,11 @@ $b is an array with:
     'template' => filename of template
     'vars' => array of vars passed to template
 
+### ''acl_lookup_end'
+is called after the other queries have passed.
+The registered function can add, change or remove the acl_lookup() variables.
+
+    'results' => array of the acl_lookup() vars 
 
 
 Complete list of hook callbacks
@@ -338,6 +343,8 @@ include/acl_selectors.php:  call_hooks($a->module . '_pre_' . $selname, $arr);
 
 include/acl_selectors.php:     call_hooks($a->module . '_post_' . $selname, $o);
 
+include/acl_selectors.php      call_hooks('acl_lookup_end', $results);
+
 include/notifier.php:          call_hooks('notifier_normal',$target_item);
 
 include/notifier.php:  call_hooks('notifier_end',$target_item);