X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FAddons.md;h=d448b026b8cd8cf6d1fa23cf11cd747161c106f1;hb=75c74e856290a712344ad6b4042ef07ef661d584;hp=69b591a820f724f8a1936f0fafc0d124244e8140;hpb=b632114b12ec9a160d5442419c21a068c2eb472b;p=friendica.git diff --git a/doc/Addons.md b/doc/Addons.md index 69b591a820..d448b026b8 100644 --- a/doc/Addons.md +++ b/doc/Addons.md @@ -104,7 +104,7 @@ function _install() function _head(App $a) { - $a->registerStylesheet(__DIR__ . '/relative/path/to/addon/stylesheet.css'); + \Friendica\DI::page()->registerStylesheet(__DIR__ . '/relative/path/to/addon/stylesheet.css'); } ``` @@ -126,7 +126,7 @@ function _install() function _footer(App $a) { - $a->registerFooterScript(__DIR__ . '/relative/path/to/addon/script.js'); + \Friendica\DI::page()->registerFooterScript(__DIR__ . '/relative/path/to/addon/script.js'); } ``` @@ -472,14 +472,14 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- Hook::callAll('init_1'); Hook::callAll('app_menu', $arr); - Hook::callAll('page_content_top', $a->page['content']); + Hook::callAll('page_content_top', DI::page()['content']); Hook::callAll($a->module.'_mod_init', $placeholder); Hook::callAll($a->module.'_mod_init', $placeholder); Hook::callAll($a->module.'_mod_post', $_POST); Hook::callAll($a->module.'_mod_afterpost', $placeholder); Hook::callAll($a->module.'_mod_content', $arr); Hook::callAll($a->module.'_mod_aftercontent', $arr); - Hook::callAll('page_end', $a->page['content']); + Hook::callAll('page_end', DI::page()['content']); ### include/api.php @@ -703,7 +703,7 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- ### src/Content/Nav.php - Hook::callAll('page_header', $a->page['nav']); + Hook::callAll('page_header', DI::page()['nav']); Hook::callAll('nav_info', $nav); ### src/Worker/Directory.php @@ -716,7 +716,6 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- ### src/Module/Login.php - Hook::callAll('authenticate', $addon_auth); Hook::callAll('login_hook', $o); ### src/Module/Logout.php @@ -740,6 +739,7 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- ### src/Core/Authentication.php Hook::callAll('logged_in', $a->user); + Hook::callAll('authenticate', $addon_auth); ### src/Core/Hook.php @@ -777,6 +777,11 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- Hook::callAll('atom_feed_end', $atom); Hook::callAll('atom_feed_end', $atom); +### src/Protocol/Email.php + + Hook::callAll('email_getmessage', $message); + Hook::callAll('email_getmessage_end', $ret); + ### view/js/main.js document.dispatchEvent(new Event('postprocess_liveupdate'));