X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FAddons.md;h=2465db7307f0654cf5ffa400c5fd48a2312e9ab7;hb=2fc79e3886af68463a7851e5cad2c0a968d15e73;hp=375f5eafddf45c1144aa5d2dfb775a5e2d68a170;hpb=8ad6b65aebfc67c9552e8d361bc464207db2e23b;p=friendica.git diff --git a/doc/Addons.md b/doc/Addons.md index 375f5eafdd..2465db7307 100644 --- a/doc/Addons.md +++ b/doc/Addons.md @@ -323,6 +323,9 @@ Called before calling PHP's `mail()`. - **body** - **headers** +### load_config +Called during `App` initialization to allow addons to load their own configuration file(s) with `App::loadConfigFile()`. + ### nav_info Called after the navigational menu is build in `include/nav.php`. `$b` is an array containing `$nav` from `include/nav.php`. @@ -565,6 +568,10 @@ Here is a complete list of all hook callbacks with file locations (as of 01-Apr- Addon::callHooks("template_vars", $arr); +### src/App.php + + Addon::callHooks('load_config'); + ### src/Model/Item.php Addon::callHooks('post_local', $item);