forum::message::set_state (private)
forum::message::set_state -message_id message_id -state state
Defined in packages/forums/tcl/messages-procs.tcl
Set the new state for a message.
Usually, used for approval.
- Switches:
- -message_id (required)
- -state (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- forum_count_test, web_forums_message_and_reply
Source code: set var_list [list [list message_id $message_id] [list state $state]] package_exec_plsql -var_list $var_list forums_message set_state # flush the forum cache to update the thread count forum::flush_cache -forum_id [db_string get_forum { select forum_id from forums_messages where message_id = :message_id }]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/forums/tcl/messages-procs.xql