[turba] how to define an enum in attributes

Jason M. Felice jfelice at cronosys.com
Wed Jan 12 05:57:41 PST 2005


Jens A. Tkotz wrote:

>Hello,
>
>i am using horde/turba HEAD
>i tried to add an enum field to attributs.php
>
>$attributes['group'] = array(
>    'label' => _("Group"),
>    'type' => 'enum',
>    'required' => false,
>    'params' => array ('family', 'friends', 'work')
>);
>
>for some reason only 'friends' appears in the pulldown when editing an entry.
>  
>
I think you'll need to use:

    'params' => array(array('family', 'friends', 'work'))

Think of it as "the first parameter for an enum is the list of choices."

>Regards,
>
>Jens
>
>  
>


-- 
 Jason M. Felice
 Cronosys, LLC <http://www.cronosys.com/>
 216.221.4600 x302



More information about the turba mailing list