- observe_menu_save/2
-
Save the menu tree of a menu resource
- observe_mailinglist_mailing/2
-
Send a page to a mailinglist (notify) Use \{single_test_address, Email\} when sending to a specific e-mail address.
- postback_event
-
Message sent by a user-agent on a postback event. Encapsulates the encoded postback and any
additional data. This is handled by z_transport.erl, which will…
- observe_admin_menu/3
-
Used for fetching the menu in the admin.
- observe_cors_headers/2
-
Set CORS headers on the HTTP response.
- observe_filewatcher/2
-
Broadcast some file changed, used for livereload by mod_development
- observe_admin_edit_blocks/3
-
Used in the admin to fetch the possible blocks for display
- observe_comment_insert/2
-
Notification to signal an inserted comment. ‘comment_id’ is the id of the inserted comment, ‘id’ is the id of
the resource commented on.
- observe_output_html/3
-
Fold for mapping non-iolist output to iolist values.
- observe_sanitize_embed_url/2
-
Sanitize an embed url. The hostpart is of the format: <<"youtube.com/v..."\>\> .
- observe_postback_notify/2
-
Handle a javascript notification from the postback handler. The message is the the request, trigger the id of the
element which triggered the postback, and…
- observe_search_query/2
-
Map a custom search term to a #search_sql_term{} record.
- observe_activity_send/2
-
Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of
- observe_tkvstore_get/2
-
Get a value from the typed key/value store
- observe_module_activate/2
-
A module has been activated and started.
- observe_ssl_options/2
-
Request the SSL certificates for this site. The server_name property contains the hostname used by the client. (first)
Returns either ‘undefined’ or a list of…
- observe_sanitize_element/3
-
Sanitize an HTML element.
- observe_dropbox_file/2
-
Handle a new file received in the ‘files/dropbox’ folder of a site. Unhandled files are deleted after an hour. If
the handler returns ‘ok’ then the file is…
- observe_category_hierarchy_save/2
-
Save (and update) the complete category hierarchy
- observe_hierarchy_updated/2
-
Signal that the hierarchy underneath a resource has been changed by mod_menu
- observe_debug/2
-
Push some information to the debug page in the user-agent. Will be displayed with io_lib:format(“~p: ~p~n”,
[What, Arg\]), be careful with escaping information!
- observe_menu_rsc/2
-
Fetch the menu id belonging to a certain resource
- observe_m_config_update_prop/2
-
Site configuration parameter was changed
- observe_mailinglist_message/2
-
Send a welcome or goodbye message to the given recipient. The recipient is either a recipient-id or a recipient props.
‘what’ is send_welcome, send_confirm
- observe_action_event_type/2
-
Render the javascript for a custom action event type. The custom event type must be a tuple, for example: `{% wire
type={live id=myid} action={...} %}</code\>`…
- observe_activity/2
-
An activity in Zotonic. When this is handled as a notification then return a list of patterns matching this activity.
These patterns are then used to find…
- observe_admin_rscform/3
-
Used in the admin to process a submitted resource form
- observe_language/2
-
Notify that the session’s language has been changed
- observe_m_config_update/2
-
Site configuration parameter was changed
- observe_module_deactivate/2
-
A module has been stopped and deactivated.
- observe_scomp_script_render/2
-
Add extra javascript with the \{% script %\} tag. (map) Used to let modules inject extra javascript depending on the
arguments of the \{% script %\} tag. Must…
- observe_security_headers/2
-
Check and possibly modify the http response security headers All headers are in lowercase.
- observe_tkvstore_delete/2
-
Delete a value from the typed key/value store
- observe_tkvstore_put/2
-
Put a value into the typed key/value store
- observe_url_fetch_options/2
-
Determine the URL fetch options for fetching the content of an URL. Used by z_fetch.erl.
- observe_resource_headers/3
-
Let all modules add resource specific response headers to the request. The accumulator is the list of headers to be set.
- observe_validate_query_args/3
-
Called just before validation of all query arguments by z_validation.
- observe_http_log_access/2
-
Access log event for http. Called from the z_stats.
- observe_middleware/3
-
Delegates the request processing.
- observe_search_query_term/2
-
Map a custom search term to a #search_sql_term{} record.
- observe_translate/2
-
Request a translation of a list of strings. The resulting translations must be in the same order as the request. This notification is handled by modules that…
- observe_language_detect/2
-
Try to detect the language of a translation. Set is_editable_only to false to detect any language, even if the language is not enabled for the site. Return…
- observe_content_security_header(Default, Acc, Context)
-
Check and possibly modify the http response security headers All headers are in lowercase.
User notifications
Notifications