[horde] prefs_init hook
Steffen
skhorde at smail.inf.fh-bonn-rhein-sieg.de
Thu Aug 13 10:22:30 UTC 2015
On Thu, 13 Aug 2015, steffo76 at gmx.de wrote:
> I have a question regarding the prefs_init hook and the stickyness of
> the values it returns. My hooks.local.php in imp and horde return values
> for prefs like full name, signature and mail address. This works as
> expected but the prefs don't get saved after the user logs out. Is there
> any way to make the settings stick without the user having to manually
> save them ?
actually, prefs_init() provides defaults and possibly overwrites old
ones. You have to check yourself.
I use:
$scope_ob->set($pref, $value);
$scope_ob->setDirty($pref, true);
setDirty() causes to save the pref later.
--
Steffen
More information about the horde
mailing list