forum::message::get_attachments (public, deprecated)
forum::message::get_attachments -message_id message_id
Defined in packages/forums/tcl/messages-procs.tcl
Deprecated. Invoking this procedure generates a warning.
Get the attachments for a message. DEPRECATED: this proc requires a connection context in a forums package instance to work as expected. An alternative could be to retrieve the forum_id from the message instead, but as this proc is not used anywhere and its logics are not difficult to inline, we just deprecate it.
- Switches:
- -message_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: ad_log_deprecated proc forum::message::get_attachments # If attachments aren't enabled, then we stop set forum_id [::xo::dc list -prepare integer get_forum_id_from_message_id { select forum_id from forums_messages where message_id = :message_id }] if {![forum::attachments_enabled_p -forum_id $forum_id]} { return [list] } return [attachments::get_attachments -object_id $message_id]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/forums/tcl/messages-procs.xql