xo::db::CrFolder proc register_content_types (public)
xo::db::CrFolder register_content_types -folder_id folder_id \ [ -content_types content_types ]
Defined in packages/xotcl-core/tcl/cr-procs.tcl
Register the specified content types for the folder. If a content_type ends with a *, include its subtypes
- Switches:
- -folder_id
(required)- -content_types
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases
Source code: foreach content_type $content_types { set with_subtypes [expr {[regexp {^(.*)[*]$} $content_type _ content_type] ? "t" : "f"}] ::acs::dc call content_folder register_content_type -folder_id $folder_id -content_type $content_type -include_subtypes $with_subtypes }XQL Not present: Generic, PostgreSQL, Oracle