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. If 'forum_id' is not passed, check only if the attachments package is mounted as a child of the current forums package instance. Otherwise, check also if a particular forum's 'attachments_allowed_p' option is true. In case the package is mounted and the option enabled, return 1.

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

Testcases:
forum_message_new
[ show source ]
Show another procedure: