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):
%3 test_forum_count_test forum_count_test (test forums) forum::message::set_state forum::message::set_state test_forum_count_test->forum::message::set_state test_web_forums_message_and_reply web_forums_message_and_reply (test forums) test_web_forums_message_and_reply->forum::message::set_state db_string db_string (public) forum::message::set_state->db_string forum::flush_cache forum::flush_cache (public) forum::message::set_state->forum::flush_cache package_exec_plsql package_exec_plsql (public) forum::message::set_state->package_exec_plsql forum::message::approve forum::message::approve (public) forum::message::approve->forum::message::set_state forum::message::reject forum::message::reject (public) forum::message::reject->forum::message::set_state packages/forums/lib/message/post.tcl packages/forums/ lib/message/post.tcl packages/forums/lib/message/post.tcl->forum::message::set_state

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

[ hide source ] | [ make this the default ]
Show another procedure: