[imp] Prepopulated value for "from_addr"

lst_hoe01@kwsoft.de lst_hoe01 at kwsoft.de
Wed Feb 1 07:13:21 PST 2006


Zitat von Jan Schneider <jan at horde.org>:

> Zitat von lst_hoe01 at kwsoft.de:
>
>> Hello
>>
>> we try to let our users choose from a set of valid addresses for their
>> "from_addr". By
>> default now one can only choose if the user can set the "from_addr"
>> (typing something
>> freestyle in) or lock the from_addr to one value. Create a identity for
>> every address per
>> preference hook seams a little bit overkill.
>> Therefore we want the preference "from_addr" to be a "select" type
>> field and get the
>> values the user can choose from a DB query.
>> Any comments if this is possible, where we should start and if others
>> maybe found this
>> useful?
>
> Change the from_addr to be an 'enum' preference type instead of
> 'text', and fill the 'enum' parameter with the correct values from the
> db based on Auth::getAuth().
>

If we want to do it right and maybe useful for others :

Where is the best place to fill the enum array? In horde/login.php like 
the language selection or in prefs.php?

Andreas




More information about the imp mailing list