ACL notifications
acl_context_authenticated acl_is_allowed acl_is_allowed_prop acl_is_owner acl_logoff acl_logon acl_mqtt acl_user_groups acl_user_groups_modify…
Authentication notifications
auth_checked auth_confirm auth_confirm_done auth_client_logon_user auth_client_switch_user auth_identity_types auth_logon auth_logoff auth_options_update…
Dispatch notifications
content_types_dispatch dispatch dispatch_host dispatch_rewrite page_url url_abs url_rewrite
Edge notifications
edge_delete edge_insert edge_update
E-mail notifications
email_add_handler email_bounced email_dkim_options email_drop_handler email_ensure_handler email_failed email_is_blocked email_is_recipient_ok email_received…
Import/export notifications
import_csv_definition import_resource export_resource_content_disposition export_resource_content_type export_resource_data export_resource_encode…
Media notifications
media_identify_extension media_identify_file media_import media_import_medium media_preview_options media_import_props media_replace_file media_stillimage…
Pivot notifications
pivot_fields pivot_rsc_data pivot_update custom_pivot
Resource notifications
rsc_delete rsc_get rsc_import_fetch rsc_insert rsc_merge rsc_pivot_done rsc_query_item rsc_update rsc_update_done rsc_upload
Survey notifications
survey_get_handlers survey_is_allowed_results_download survey_is_submit survey_submit survey_result_columns survey_result_column_values
User notifications
identity_password_match identity_verification identity_verified identity_update_done logon_options logon_ready_page logon_submit set_user_language…
Other notifications
action_event_type activity activity_send admin_edit_blocks admin_menu admin_rscform category_hierarchy_save comment_insert content_security_header cors_headers…

Validators Reference Installation requirements

All Notifications

observe_module_deactivate/2

A module has been stopped and deactivated.

observe_output_html/3

Fold for mapping non-iolist output to iolist values.

observe_page_url/2

Fetch the url of a resource’s html representation

observe_pivot_fields/3

Foldr to change or add pivot fields for the main pivot table. The rsc contains all rsc properties for this resource

observe_pivot_rsc_data/3

Fold over the resource props map to extend/remove data to be pivoted

observe_pivot_update/3

Pivot just before a m_rsc_update update. Used to pivot fields before the pivot itself.

observe_postback_notify/2

Handle a javascript notification from the postback handler. The message is the the request, trigger the id of the…

observe_request_context/3

Refresh the context or request process for the given request or action

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_rsc_delete/2

Resource will be deleted. This notification is part of the delete transaction, it’s purpose is to clean up associated…

observe_rsc_get/3

Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.

observe_rsc_import_fetch/2

Fetch the data for an import of a resource. Returns data in the format used by m_rsc_export and m_rsc_import. Either…

observe_rsc_insert/3

Foldr for an resource insert, these are the initial properties and will overrule the properties in the insert request.

observe_rsc_merge/2

Map to signal merging two resources. Move any information from the loser to the winner. The loser will be deleted.

observe_rsc_pivot_done/2

Signal that a resource pivot has been done.

observe_rsc_query_item/2

Send a notification that the resource ‘id’ is added to the query query_id.

observe_rsc_update/3

An updated resource is about to be persisted. Observe this notification to change the resource properties before they…

observe_rsc_update_done/2

An updated resource has just been persisted. Observe this notification to execute follow-up actions for a resource…

observe_rsc_upload/2

Upload and replace the resource with the given data. The data is in the given format.

observe_sanitize_element/3

Sanitize an HTML element.

observe_sanitize_embed_url/2

Sanitize an embed url. The hostpart is of the format: <<"youtube.com/v..."\>\> .

observe_scomp_script_render/2

Add extra javascript with the \{% script %\} tag. (map) Used to let modules inject extra javascript depending on the…

observe_search_query/2

Map a custom search term to a #search_sql_term{} record.

observe_search_query_term/2

Map a custom search term to a #search_sql_term{} record.

observe_security_headers/2

Check and possibly modify the http response security headers All headers are in lowercase.

observe_session_context/3

Refresh the context or request process for the given request or action

observe_set_user_language/2

Set the language of the context to a user’s prefered language

observe_signup/2

Request a signup of a new or existing user. Arguments are similar to #signup_url\{\} Returns \{ok, UserId\} or \{error

observe_signup_check/3

signup_check Check if the signup can be handled, a fold over all modules. Fold argument/result is \{ok, Props

observe_signup_confirm/2

Signal that a user has been confirmed. (map, result is ignored)

observe_signup_confirm_redirect/2

Fetch the page a user is redirected to after signing up with a confirmed identity

observe_signup_done/2

Signal that a user has been signed up (map, result is ignored)

observe_signup_failed_url/2

Signup failed, give the error page URL. Return \{ok, Url\} or undefined. Reason is returned by the signup handler for…

observe_signup_url/2

Handle a signup of a user, return the follow on page for after the signup. Return {ok, Url} ‘props’ is a map with…

observe_ssl_options/2

Request the SSL certificates for this site. The server_name property contains the hostname used by the client. (first…

observe_survey_get_handlers/3

Fetch list of handlers for survey submits.

observe_survey_is_allowed_results_download/2

Check if the current user is allowed to download a survey.

observe_survey_is_submit/2

Check if a question (page block) is a submitting question.

observe_survey_result_columns/3

Add header columns for export. The values are the names of the answers and the text displayed above the column. The…

observe_survey_result_column_values/3

Modify row with answers for export. The header columns are given and the values that are known are set in the folded…

observe_survey_submit/2

A survey has been filled in and submitted.

observe_tkvstore_delete/2

Delete a value from the typed key/value store

observe_tkvstore_get/2

Get a value from the typed key/value store

observe_tkvstore_put/2

Put a value into the typed key/value store

observe_translate/2

Request a translation of a list of strings. The resulting translations must be in the same order as the request. This…

observe_url_abs/2

Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher

observe_url_fetch_options/2

Determine the URL fetch options for fetching the content of an URL. Used by z_fetch.erl.

observe_url_rewrite/3

Rewrite a URL after it has been generated using the z_dispatcher

observe_user_context/3

Set #context fields depending on the user and/or the preferences of the user.

observe_user_is_enabled/2

Check if a user is enabled. Enabled users are allowed to log in. Return true , false or undefined . If undefined is…

observe_validate_query_args/3

Called just before validation of all query arguments by z_validation.

postback_event

Message sent by a user-agent on a postback event. Encapsulates the encoded postback and any additional data. This is…