6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/29/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14928] Automatically prepare Kronolith's search_sources
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..___\ /.___..___ | |[__ >< | [__ |__|| / \ | |
Comment
> I've one similar situation but my hook give me more information, give > me the search_sources and the default fb_cals. > > My hook have this configuration: > > <?php > class Kronolith_Hooks > { > > public function prefs_init($pref, $value, $username, $scope_ob) > { > > if (is_null($username)) { // not logged in > return $value; > } > > switch ($pref) { > case 'search_sources': > $sources = $GLOBALS['registry']->call('contacts/sources'); > $value = json_encode(array_keys($sources)); > $scope_ob->set($pref, $value); > $scope_ob->setDirty($pref, true); > > case 'fb_cals': > $fb_cals = > @unserialize($GLOBALS['prefs']->getValue('fb_cals')); > if (empty($fb_cals)) { > $display_calendars = > @unserialize($GLOBALS['prefs']->getValue('display_cals')); > $fb_url = 'a:1:{i:0;s:32:"internal_' . > $display_calendars[0] . '";}'; > $GLOBALS['prefs']->setValue('fb_cals', $fb_url); > $scope_ob->set($pref, $cenas); > $scope_ob->setDirty($pref, true); > } > return $value; > } > } > } > > With the search_sources configured to automatically prepare > Kronolith's search_sources my freebusy stopped to show about > availability of an attendee.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers