Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Notifications
  • Reference
  • Backend developer
  • Comments and community
  • Notification
  • Create

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.

Type:

notify

Return:

#comment_insert{} properties:

  • comment_id: integer
  • id: m_rsc:resource_id()

Edit on GitHub

Related documentation

Notifications

observe_signup_done/2

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

Notifications

observe_signup/2

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

Notifications

observe_rsc_insert/3

Foldr for a resource insert, these are the initial properties and will overrule the properties in the insert request. Use with care. The…

Notifications

observe_signup_confirm/2

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

Notifications

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 properties for the person…

Notifications

observe_signup_confirm_redirect/2

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

Notifications

observe_signup_check/3

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

Notifications

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 the particular signup…

Notifications

observe_development_make/2

Runs the development make process and reloads newly compiled BEAM files after a manual request.

GitHub © 2026 Zotonic