forum::attachments_enabled_p (public)

 forum::attachments_enabled_p [ -forum_id forum_id ]

Defined in packages/forums/tcl/forums-procs.tcl

Check if attachments are enabled in forums. Simple attachment style uses the enabled shared attachments service. Complex style requires an attachments instance mounted beneath Forums. When forum_id is supplied, also require that forum's attachments_allowed_p option. Otherwise, determine the Forums instance from the current request.

Switches:
-forum_id (optional)
Returns:
1 if the attachments are enabled in the forums, 0 otherwise.

Partial Call Graph (max 5 caller/called nodes):
test_forum_message_new forum_message_new (test forums) forum::attachments_enabled_p forum::attachments_enabled_p test_forum_message_new->forum::attachments_enabled_p ad_conn ad_conn (public) forum::attachments_enabled_p->ad_conn ad_log ad_log (public) forum::attachments_enabled_p->ad_log apm_package_enabled_p apm_package_enabled_p (public) forum::attachments_enabled_p->apm_package_enabled_p forum::get forum::get (public) forum::attachments_enabled_p->forum::get parameter::get parameter::get (public) forum::attachments_enabled_p->parameter::get forum::message::get forum::message::get (public) forum::message::get->forum::attachments_enabled_p forum::message::get_attachments forum::message::get_attachments (public, deprecated) forum::message::get_attachments->forum::attachments_enabled_p forums::form::forum forums::form::forum (public) forums::form::forum->forum::attachments_enabled_p packages/forums/lib/forums/edit.tcl packages/forums/ lib/forums/edit.tcl packages/forums/lib/forums/edit.tcl->forum::attachments_enabled_p packages/forums/lib/forums/new.tcl packages/forums/ lib/forums/new.tcl packages/forums/lib/forums/new.tcl->forum::attachments_enabled_p

Testcases:
forum_message_new
[ show source ]
Show another procedure: