[horde] hook appinitialized

Ronan SALMON rsalmon at mbpgroup.com
Wed May 25 10:04:11 UTC 2011


Hi all,

I'm trying to assign a new value to a looked pref from hook appinitialized().

Example with turba :

$_prefs['addressbooks']['locked'] = true;

turba/config/hook.php:
public function appinitialized() {
     $GLOBALS['prefs']->setValue('addressbooks',json_encode($sources),  
array('nosave' => true));
}

The pref doesn't get setted, because setValue() from  
framework/Prefs/lib/Horde/Prefs.php doesn't do anything if pref is  
locked.

So, how can I update a locked pref from hook appinitialized()

Thanks,
Ronan.




More information about the horde mailing list