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):
%3 ad_log_deprecated ad_log_deprecated (public) attachments::get_attachments attachments::get_attachments (public) forum::attachments_enabled_p forum::attachments_enabled_p (public) forum::message::get_attachments forum::message::get_attachments forum::message::get_attachments->ad_log_deprecated forum::message::get_attachments->attachments::get_attachments forum::message::get_attachments->forum::attachments_enabled_p

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc forum::message::get_attachments
    # If attachments aren't enabled, then we stop
    if {![forum::attachments_enabled_p]} {
        return [list]
    }

    return [attachments::get_attachments -object_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: