mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Add load_config hook doc
This commit is contained in:
parent
4e7471232e
commit
de7277ac69
1 changed files with 7 additions and 0 deletions
|
@ -323,6 +323,9 @@ Called before calling PHP's `mail()`.
|
||||||
- **body**
|
- **body**
|
||||||
- **headers**
|
- **headers**
|
||||||
|
|
||||||
|
### load_config
|
||||||
|
Called during `App` initialization to allow addons to load their own configuration file(s) with `App::loadConfigFile()`.
|
||||||
|
|
||||||
### nav_info
|
### nav_info
|
||||||
Called after the navigational menu is build in `include/nav.php`.
|
Called after the navigational menu is build in `include/nav.php`.
|
||||||
`$b` is an array containing `$nav` from `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);
|
Addon::callHooks("template_vars", $arr);
|
||||||
|
|
||||||
|
### src/App.php
|
||||||
|
|
||||||
|
Addon::callHooks('load_config');
|
||||||
|
|
||||||
### src/Model/Item.php
|
### src/Model/Item.php
|
||||||
|
|
||||||
Addon::callHooks('post_local', $item);
|
Addon::callHooks('post_local', $item);
|
||||||
|
|
Loading…
Reference in a new issue