X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FAddons.md;h=50febf7214abde7abcd9dbc1550604a82004875b;hb=26acf3d78e7dc6e12f35e8e5a86f14fd446322a8;hp=011bca0737a6f96a2c4f6667c49cdd9d8f9129b9;hpb=505350c9fb9b16dde6c86d418947592ab3720282;p=friendica.git diff --git a/doc/Addons.md b/doc/Addons.md index 011bca0737..50febf7214 100644 --- a/doc/Addons.md +++ b/doc/Addons.md @@ -160,11 +160,11 @@ In your code, like in the function addon_name_content(), load the template file ```php # load template file. first argument is the template name, # second is the addon path relative to friendica top folder -$tpl = get_markup_template('mytemplate.tpl', 'addon/addon_name/'); +$tpl = Renderer::getMarkupTemplate('mytemplate.tpl', 'addon/addon_name/'); # apply template. first argument is the loaded template, # second an array of 'name' => 'values' to pass to template -$output = replace_macros($tpl, array( +$output = Renderer::replaceMacros($tpl, array( 'title' => 'My beautiful addon', )); ``` @@ -450,10 +450,6 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- Addon::callHooks('item_photo_menu', $args); Addon::callHooks('jot_tool', $jotplugins); -### include/security.php - - Addon::callHooks('logged_in', $a->user); - ### include/text.php Addon::callHooks('contact_block_end', $arr); @@ -693,6 +689,11 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- Addon::callHooks($a->module.'_post_'.$selname, $o); Addon::callHooks('jot_networks', $jotnets); +### src/Core/Authentication.php + + Addon::callHooks('logged_in', $a->user); + + ### src/Core/Worker.php Addon::callHooks("proc_run", $arr);