@@ -67,55+67,67 @@ $b can be called anything you like.
This is information specific to the hook currently being processed, and generally contains information that is being immediately processed or acted on that you can use, display, or alter.
Remember to declare it with `&` if you wish to alter it.
This is information specific to the hook currently being processed, and generally contains information that is being immediately processed or acted on that you can use, display, or alter.
Remember to declare it with `&` if you wish to alter it.
-## JavaScript addon hooks
+## Global stylesheets
-### PHP part
+If your addon requires adding a stylesheet on all pages of Friendica, add the following hook:
-Make sure your JavaScript addon file (addon/*addon_name*/*addon_name*.js) is listed in the document response.
visitor => array with the contact record of the visitor
url => the query string
visitor => array with the contact record of the visitor
url => the query string
-## Current JavaScript hooks
-
-### postprocess_liveupdate
-Called at the end of the live update process (XmlHttpRequest)
-
## Complete list of hook callbacks
## Complete list of hook callbacks
-Here is a complete list of all hook callbacks with file locations (as of 01-Apr-2018). Please see the source for details of any hooks not documented above.
+Here is a complete list of all hook callbacks with file locations (as of 24-Sep-2018). Please see the source for details of any hooks not documented above.
### index.php
### index.php
@@ -433,10+450,6 @@ Here is a complete list of all hook callbacks with file locations (as of 01-Apr-
Addon::callHooks('item_photo_menu', $args);
Addon::callHooks('jot_tool', $jotplugins);
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);
### include/text.php
Addon::callHooks('contact_block_end', $arr);
@@ -571,6+584,8 @@ Here is a complete list of all hook callbacks with file locations (as of 01-Apr-
### src/App.php
Addon::callHooks('load_config');
### src/App.php
Addon::callHooks('load_config');
+ Addon::callHooks('head');
+ Addon::callHooks('footer');
### src/Model/Item.php
### src/Model/Item.php
@@ -674,6+689,14 @@ Here is a complete list of all hook callbacks with file locations (as of 01-Apr-