[kronolith] Running against walls ... hooks&prefs - I need help

Jan Schneider jan at horde.org
Thu Feb 16 14:48:22 UTC 2012


Zitat von Martin Hochreiter <linuxbox at wavenet.at>:

> ___
> FN 146616m, LG St. Pölten, DVR 1028669F
>
>
> Am 2012-02-15 14:33, schrieb Jan Schneider:
>>
>> Zitat von Martin Hochreiter <linuxbox at wavenet.at>:
>>
>>> Hi!
>>>
>>> I am trying to set preferences for an external calender for each user.
>>>
>>> I created a config/prefs.local.php in kronolith:
>>
>> prefs.local.php is Kronolith H4.
>>
> Ok that fits - I am using 3.0.15
>
>
>> This is Kronolith H3.
>>
>>> if(!function_exists('_prefs_hook_display_remote_cals'))
>>> {
>>>    function _prefs_hook_display_remote_cals()
>>>    {
>>>            return  
>>> 'a:1:{i:0;s:118:"https://xxxxxxxxxxxxxxxxx/api/dav/Calendars/Users/xxx/Calendar";}';      
>>> }
>>> }
>>> if(!function_exists('_prefs_hook_remote_cals'))
>>> {
>>>    function _prefs_hook_remote_cals()
>>>    {
>>>        return      
>>> 'a:1:{i:0;a:6:{s:4:"name";s:2:"FH";s:4:"desc";s:0:"";s:3:"url";s:118:"https://xxxxxxxxxxxxxxxxx/api/dav/Calendars/Users/xxx/Calendar";s:5:"color";s:7:"#97d259";s:4:"user";s:0:"";s:8:"password";s:0:"";}}';
>>>    }
>>
> mhmm, what is kronolith h4 then?
>
> this?
>
> class Kronolith_Hooks
> {
>     public function _prefs_hook_display_remote_cals()
>     {
>             return  
> 'a:1:{i:0;s:118:"https://xxxxxxxxxxxxxxxxx/api/dav/Calendars/Users/xxx/Calendar";}';      
> }
>     }
>     public function _prefs_hook_remote_cals()
>     {
>         return      
> 'a:1:{i:0;a:6:{s:4:"name";s:2:"FH";s:4:"desc";s:0:"";s:3:"url";s:118:"https://xxxxxxxxxxxxxxxxx/api/dav/Calendars/Users/xxx/Calendar";s:5:"color";s:7:"#97d259";s:4:"user";s:0:"";s:8:"password";s:0:"";}}';      
> }
> }
>
> if - then this is not working too ...
>
> I find some examples in the horde wiki (how prefs&hooks work  
> together) but when I put them together
> with my case ... nothing works

Why don't you look at the official documentation first? Read the docs  
and comments in hooks.php.dist.
-- 
The Horde Project
http://www.horde.org/



More information about the kronolith mailing list