content::item::content_methods_by_type (public)

 content::item::content_methods_by_type [ -get_labels ] content_type

Defined in packages/acs-content-repository/tcl/content-item-procs.tcl

Determines all the valid content methods for instantiating a content type. Possible choices are text_entry, file_upload, no_content and xml_import. Currently, this proc merely removes the text_entry method if the item does not have a text mime type registered to it. In the future, a more sophisticated mechanism will be implemented.

Switches:
-get_labels
(boolean) (optional)
Return not just a list of types, but a list of name-value pairs, as in the -options ATS switch for form widgets
Parameters:
content_type - The content type
Returns:
A Tcl list of all possible content methods

Partial Call Graph (max 5 caller/called nodes):
%3 db_list db_list (public) content::item::content_methods_by_type content::item::content_methods_by_type content::item::content_methods_by_type->db_list

Testcases:
No testcase defined.
[ show source ]
Show another procedure: