cr_create_mime_type (private)

 cr_create_mime_type -mime_type mime_type [ -extension extension ] \
    [ -description description ]

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

Creates a mime type if it does not exist. Also maps extension to mime_type (unless the extension is already mapped to another mime type or extension is empty).

Switches:
-mime_type (required)
the mime_type to create
-extension (optional)
the default extension for the given mime type
-description (optional)
a plain text description of the mime type (< 200 characters)
Author:
Jeff Davis <davis@xarg.net>

Partial Call Graph (max 5 caller/called nodes):
%3 content::apm::after_upgrade content::apm::after_upgrade (private) cr_create_mime_type cr_create_mime_type content::apm::after_upgrade->cr_create_mime_type cr_filename_to_mime_type cr_filename_to_mime_type (public) cr_filename_to_mime_type->cr_create_mime_type packages/acs-content-repository/www/admin/mime-types/map.tcl packages/acs-content-repository/ www/admin/mime-types/map.tcl packages/acs-content-repository/www/admin/mime-types/map.tcl->cr_create_mime_type packages/acs-content-repository/www/admin/mime-types/new.tcl packages/acs-content-repository/ www/admin/mime-types/new.tcl packages/acs-content-repository/www/admin/mime-types/new.tcl->cr_create_mime_type db_dml db_dml (public) cr_create_mime_type->db_dml

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