Other notifications

Edit on GitHub

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…
activity_send
Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.
admin_edit_blocks
Used in the admin to fetch the possible blocks for display
admin_menu
Used for fetching the menu in the admin.
admin_rscform
Used in the admin to process a submitted resource form
category_hierarchy_save
Save (and update) the complete category hierarchy
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.
cors_headers
Set CORS headers on the HTTP response.
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!
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…
dropbox_file
Handle a new file received in the ‘files/dropbox’ folder of a site. Unhandled files are deleted after a hour.
filewatcher
Broadcast some file changed, used for livereload by mod_development
hierarchy_updated
Signal that the hierarchy underneath a resource has been changed by mod_menu
http_log_access
Access log event for http. Called from the z_stats.
language
Notify that the session’s language has been changed
m_config_update
Site configuration parameter was changed
m_config_update_prop
Site configuration parameter was changed
mailinglist_mailing
Send a page to a mailinglist (notify) Use {single_test_address, Email} when sending to a specific e-mail address.
mailinglist_message
Send a welcome or goodbye message to the given recipient. The recipient is either an e-mail address or a resource id. ‘what’ is send_welcome, send_confirm
menu_rsc
Fetch the menu id belonging to a certain resource
menu_save
Save the menu tree of a menu resource
middleware
Delegates the request processing.
module_activate
A module has been activated and started.
module_deactivate
A module has been stopped and deactivated.
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.
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…
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…
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…
resource_headers
Let all modules add resource specific response headers to the request. The accumulator is the list of headers to be set.
sanitize_element
Sanitize an HTML element.
sanitize_embed_url
Sanitize an embed url. The hostpart is of the format: <<"youtube.com/v...">> .
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…
search_query
An edge has been inserted. Note that the Context for this notification does not have the user who created the edge.
security_headers
Check and possibly modify the http response security headers All headers are in lowercase.
service_authorize
Request API logon
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…
tkvstore_delete
Delete a value from the typed key/value store
tkvstore_get
Get 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.
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…

User notifications Notifications