Other notifications

Edit on GitHub

menu_save
Save the menu tree of a menu resource
mailinglist_mailing
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…
admin_menu
Used for fetching the menu in the admin.
cors_headers
Set CORS headers on the HTTP response.
filewatcher
Broadcast some file changed, used for livereload by mod_development
admin_edit_blocks
Used in the admin to fetch the possible blocks for display
comment_insert
Notification to signal an inserted comment. ‘comment_id’ is the id of the inserted comment, ‘id’ is the id of the resource commented on.
output_html
Fold for mapping non-iolist output to iolist values. Used when outputting a rendered HTML tree. Folded accumulator is: { MixedHtml, Context } Type: foldl…
multiupload
Handle an uploaded file which is part of a multiple file upload from a user-agent. The upload is a #upload record or a filename on the server.
sanitize_embed_url
Sanitize an embed url. The hostpart is of the format: <<"youtube.com/v...">> .
postback_notify
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…
search_query
Map a custom search term to a #search_sql_term{} record.
activity_send
Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.
tkvstore_get
Get a value from the typed key/value store
service_authorize
Request API logon
module_activate
A module has been activated and started.
ssl_options
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…
sanitize_element
Sanitize an HTML element.
dropbox_file
Handle a new file received in the ‘files/dropbox’ folder of a site. Unhandled files are deleted after a hour.
category_hierarchy_save
Save (and update) the complete category hierarchy
hierarchy_updated
Signal that the hierarchy underneath a resource has been changed by mod_menu
debug
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!
menu_rsc
Fetch the menu id belonging to a certain resource
m_config_update_prop
Site configuration parameter was changed
mailinglist_message
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
debug_stream
Internal message of mod_development. Start a stream with debug information to the user agent. ‘target’ is the id of the HTML element where the information is…
action_event_type
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>…
activity
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…
admin_rscform
Used in the admin to process a submitted resource form
language
Notify that the session’s language has been changed
m_config_update
Site configuration parameter was changed
module_deactivate
A module has been stopped and deactivated.
scomp_script_render
Add extra javascript with the {% script %} tag. (map) Used to let modules inject extra javascript depending on the arguments of the {% script %} tag. Must…
security_headers
Check and possibly modify the http response security headers All headers are in lowercase.
tkvstore_delete
Delete a value from the typed key/value store
tkvstore_put
Put a value into the typed key/value store
url_fetch_options
Determine the URL fetch options for fetching the content of an URL. Used by z_fetch.erl.
resource_headers
Let all modules add resource specific response headers to the request. The accumulator is the list of headers to be set.
validate_query_args
Called just before validation of all query arguments by z_validation. This is the moment to filter any illegal arguments or change query arguments. Type: foldl…
http_log_access
Access log event for http. Called from the z_stats.
middleware
Delegates the request processing.
search_query_term
Map a custom search term to a #search_sql_term{} record.
translate
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…
language_detect
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…

User notifications Notifications