[imp] IMP & Preferences - Can they be changed on the "fly"
Jon Parise
jon@horde.org
Sat, 16 Feb 2002 21:13:49 -0500
On Sat, Feb 16, 2002 at 03:50:19PM -0700, John wrote:
> >You can change them quite easily from within IMP by calling
> >$prefs->setValue('pref_name', 'new_value').
>
> Okay, let's say my default preference on "from_addr" is:
>
> $_prefs['from_addr'] = array(
> 'value' => '',
> 'locked' => true,
> 'shared' => true,
> 'type' => 'implicit'
> );
>
> Would that be simply:
> $prefs->setValue('from_addr', 'array(
> 'value' => '',
> 'locked' => false,
> 'shared' => true,
> 'type' => 'implicit'
> )'
> );
>
> Changing locked from true to false? Or do I have too much listed there?
You have too much listed. Have a look at:
http://dev.horde.org/api/horde/2.0/Prefs.html
--
Jon Parise (jon@csh.rit.edu) . Information Technology (2001)
http://www.csh.rit.edu/~jon/ : Computer Science House Member