X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FPlugins.md;h=3a25dc72170184013197a5bee99498c8e12c3fdd;hb=e7914ecc95a55c1f78ae3f0a1b3bc6de8557e973;hp=6460fd5a09459bf6fe57f3dcf1fab6403de1b2de;hpb=42c2e09382d3b2846a0cb709d88cda97e717424f;p=friendica.git diff --git a/doc/Plugins.md b/doc/Plugins.md index 6460fd5a09..3a25dc7217 100644 --- a/doc/Plugins.md +++ b/doc/Plugins.md @@ -40,7 +40,7 @@ Arguments --- Your hook callback functions will be called with at least one and possibly two arguments - function myhook_function(&$a, &$b) { + function myhook_function(App $a, &$b) { } @@ -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(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. +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 --- @@ -285,7 +285,7 @@ $b is an array with: 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 + 'results' => array of the acl_lookup() vars Complete list of hook callbacks