[imp] Prepopulated value for "from_addr"
Jan Schneider
jan at horde.org
Wed Feb 1 07:41:11 PST 2006
Zitat von lst_hoe01 at kwsoft.de:
> 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?
In prefs.php so that it doesn't get overwritten during updates.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the imp
mailing list