forum::image_paste_enabled_p (public)
forum::image_paste_enabled_p [ -forum_id forum_id ]
Defined in packages/forums/tcl/forums-procs.tcl
Check availability of image paste independently of general file attachments. When forum_id is supplied, also require its image_paste_allowed_p setting. Existing inline images remain readable when new pastes are disabled.
- Switches:
- -forum_id (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if {![apm_package_enabled_p attachments] || [namespace which ::attachments::attach] eq ""} { return 0 } if {$forum_id ne ""} { forum::get -forum_id $forum_id -array forum return [expr {$forum(image_paste_allowed_p) ? 1 : 0}] } return 1Generic XQL file: packages/forums/tcl/forums-procs.xql
PostgreSQL XQL file: packages/forums/tcl/forums-procs-postgresql.xql
Oracle XQL file: packages/forums/tcl/forums-procs-oracle.xql