forums::form::message (public)
forums::form::message [ -optional ] [ -prefix prefix ] form_name
Defined in packages/forums/tcl/form-procs.tcl
adds form elements to form_name which represent the data held in a forum message
- Switches:
- -optional (optional, boolean)
- -prefix (optional)
- Parameters:
- form_name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- web_forums_message_and_reply
Source code: ############################## # Form definition # set optional_switch [list] if { $optional_p } { lappend optional_switch -optional } template::element create $form_name ${prefix}subject -label [_ forums.Subject] -datatype text -widget text -html {maxlength 200 size 60} {*}$optional_switch template::element create $form_name ${prefix}message_body -label [_ forums.Body] -datatype richtext -widget richtext -html {rows 20 cols 60 style {width:100%}} {*}$optional_switchXQL Not present: Generic, PostgreSQL, Oracle