[turba] Setting Preference for sync_books

Jan Schneider jan at horde.org
Tue Jul 29 09:54:00 UTC 2014


Zitat von Lincoln Lavoie <lylavoie at iol.unh.edu>:

> Hello All,
>
> I'm trying to setup our Horde/Turba install to automatically sync  
> two address books (the users default directory and an LDAP of our  
> employees) with their ActiveSync devices.  I can create a working  
> prefs_init hook, which will set the value of sync_books correctly.  
> But I have two questions.
>
> 1.  The values set by the prefs_init hook outputs are only cached,  
> they do not write the value to the backend (mySQL in this case).  
> Making a call to $GLOBALS['prefs']->setValue('sync_books',  
> $sync_books); does not write the value to the backend.  Is there a  
> correct way to use a hook to make the preference value persistent?

Why would you want to do this, if you have a working hook that  
correctly sets the value at run-time?

> 2. Related to question 1, the prefs_init for Turba seems to only be  
> called within the Turba name space.  I would like to support users  
> who connect an ActiveSync device, but have not logged into the web  
> framework.  Is there a hook system for ActiveSync that could be used  
> to set these types of values on login.

Again, I'm not sure what's wrong with this behavior?

-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the turba mailing list