[turba] predefine Addressbooks

Michael J Rubinsky mrubinsk at horde.org
Tue Nov 8 14:59:49 UTC 2011


Quoting Makeri <makeri-kutsonu at t-online.de>:

> Craig White <craigwhite <at> azapple.com> writes:
>
>>
>> ----
>> I would suggest you look at these preferences...
>>
>> // preference for holding any preferences-based addressbooks.
>> $_prefs['prefbooks'] = array(
>>     'value' => ''
>> );
>>
>> // Address books to be displayed in the address book selection widget
>> // and in the Browse menu item.  The address book name is stored using
>> // the source key from backends.php (e.g. "localsql").
>> // You can provide default values this way:
>> //   'value' => json_encode(array('source_one', 'source_two'))
>> // If 'value' is empty (''), all address books that the user has
>> permissions
>> // to will be listed.
>> $_prefs['addressbooks'] = array(
>>     'value' => ''
>> );
>>
>> Craig
>>
>
> i mean NOT $_prefs['addressbooks'] !

Why not? That's what this pref is for. Assuming the address books  
exist, the user's have permissions on them, and the values you give  
'ad1' and 'ad4' are valid. The comments above the pref tells you  
*exactly* what value to put in there.

-- 
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org



More information about the turba mailing list