[turba] how to define an enum in attributes

Jens A. Tkotz jens at peino.de
Wed Jan 12 06:54:59 PST 2005


Thanks !

That did it.

Jens


Quoting "Jason M. Felice" <jfelice at cronosys.com>:

> 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
>
> -- Turba mailing list - Join the hunt: http://horde.org/bounties/#turba
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>



-- 
_________________________
Ich sag mal .... Charisma


More information about the turba mailing list