attribute::add (public)

 attribute::add [ -default default ] [ -min_n_values min_n_values ] \
    [ -max_n_values max_n_values ] object_type datatype pretty_name \
    pretty_plural

Defined in packages/acs-subsite/tcl/attribute-procs.tcl

wrapper for the acs_attribute.create_attribute call. Note that this procedure assumes type-specific storage.

Switches:
-default (optional)
-min_n_values (optional)
-max_n_values (optional)
Parameters:
object_type (required)
datatype (required)
pretty_name (required)
pretty_plural (required)
Returns:
The attribute_id of the newly created attribute
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
12/2000

Testcases:
acs_subsite_attributes
[ show source ]
Show another procedure: