[kronolith] Running against walls ... hooks&prefs - I need help
Martin Hochreiter
linuxbox at wavenet.at
Wed Feb 15 12:35:07 UTC 2012
Hi!
I am trying to set preferences for an external calender for each user.
I created a config/prefs.local.php in kronolith:
-------------------------------
$_prefs['fb_url'] = array(
'value' => '',
'hook' => true,
'locked' => false
);
$_prefs['display_remote_cals'] = array(
'value' => '',
'hook' => true,
'locked' => false
);
$_prefs['remote_cals'] = array(
'value' => '',
'hook' => true,
'locked' => false
);
-------------------------------
and edited config/hooks.php in kronolith with (working) static return
values:
------------------------------
if(!function_exists('_prefs_hook_fb_url'))
{
function _prefs_hook_fb_url()
{
return 'blablabla';
}
}
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:"";}}';
}
}
------------------------------
But - the only entry I get in horde_prefs is the display_remote_cals
with "a:0:{}",
i dont see any of the other 2 entries and ... have no idea why
please help!
regards
Martin
More information about the kronolith
mailing list