Module mod_comment

Simple comment module.

Copyright © 2010 Marc Worrell Date: 2010-01-15

Authors: Marc Worrell (marc@worrell.nl).

Description

Simple comment module. Adds comments to any rsc.

Function Index

event/2Handle the submit event of a new comment.
init/1Check the installation of the comment table.
observe_admin_menu/3
observe_rsc_merge/2Move all comments from one resource to another.
observe_search_query/2Return the list of recent comments.

Function Details

event/2

event(Submit, Context) -> any()

Handle the submit event of a new comment

init/1

init(Context) -> any()

Check the installation of the comment table. A bit more complicated because 0.1 and 0.2 had a table in the default installer, this module installs a different table.

observe_admin_menu/3

observe_admin_menu(Admin_menu, Acc, Context) -> any()

observe_rsc_merge/2

observe_rsc_merge(Rsc_merge, Context) -> any()

Move all comments from one resource to another

observe_search_query/2

observe_search_query(Search_query, Context) -> any()

Return the list of recent comments. Returned values are the complete records.


Generated by EDoc