[horde] Set "from_addr" as pre populated "enum" field
Michael M Slusarz
slusarz at horde.org
Tue Mar 19 19:16:19 UTC 2013
Quoting lst_hoe02 at kwsoft.de:
> Hello,
>
> we are on the way to Horde 5 and try to get the prefs.local.php for
> Horde altered so a enum filed is used for the from_addr preference,
> so the user is only able to choose the from_addr out of a list of
> aliases obtained with a database query.
>
> What is the easiest way to use a Database query for standard SQL
> source in prefs.local.php?
Are you asking how to populate a preference field with dynamic results
obtained from an SQL query? Use the 'on_init' feature (see, e.g., the
'language' preference).
> Is it correct to use $userId as logged in user?
Not sure where you are getting $userId from? Authenticated is always
$registry->getAuth().
michael
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the horde
mailing list