[imp] Prepopulated value for "from_addr"
Jan Schneider
jan at horde.org
Wed Feb 1 06:41:23 PST 2006
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().
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the imp
mailing list