[kronolith] Running against walls ... hooks&prefs - I need help
Jan Schneider
jan at horde.org
Wed Feb 15 13:33:47 UTC 2012
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.
> -------------------------------
> $_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';
> }
> }
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:"";}}';
> }
> }
> ------------------------------
>
> 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
> --
> Kronolith mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
--
The Horde Project
http://www.horde.org/
More information about the kronolith
mailing list