X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FAddons.md;h=bf139aea7f1e831084646558d3528332d81848a0;hb=6bc865ff4d68170c83a675cfc75cdc025a192b15;hp=f7dfcc870c72ca56a877df3503969ec37e743694;hpb=ac19a9cddc9e9cee323bb46123d95cfc02ffef0e;p=friendica.git diff --git a/doc/Addons.md b/doc/Addons.md index f7dfcc870c..bf139aea7f 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', )); ``` @@ -693,6 +693,9 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- Addon::callHooks('logged_in', $a->user); +### src/Core/Hook.php + + self::callSingle(self::getApp(), 'hook_fork', $fork_hook, $hookdata); ### src/Core/Worker.php