[horde] 2 selections from DropDown in a prefs as default in prefs.php
Vilius Šumskas
vilius at lnk.lt
Mon Jun 25 13:10:13 UTC 2012
> Am 25.06.2012 13:51, schrieb Vilius Šumskas:
> >> I found this in kronoliths prefs.php:
> >>
> >> // show event location in the calendar and/or print views?
> >> $_prefs['show_location'] = array(
> >> 'value' => 'a:1:{i:0;s:5:"print"}',
> >> 'type' => 'multienum',
> >> 'enum' => array(
> >> 'screen' => _("Month, Week, and Day Views"),
> >> 'print' => _("Print Views")
> >> ),
> >> 'desc' => _("Choose the views to show event locations in:"),
> >> );
> >>
> >>
> >> I would like as default "print" and "screen".
> >>
> >> How can I change it? I try 'value' => 'a:1:{i:0;s:5:"print screen"}',
> >> but thats not so easy :-(
> > Adjust and save needed preference in a test account, go to preference
> backend, and copy/paste new value to prefs.local.php. Done.
> >
> where ist the "preference backend"? The Database?
> But the database-tabels horde_prefs is since Horde 4 InnoDB. I can't
> read the row show_location in phpmyadmin.
> Is there another way? Or how can I read/edit InnoDB
Sorry, I constantly forget about that. You can use mysql cli and get the value with something like:
SELECT pref_value FROM horde_prefs WHERE pref_uid LIKE 'testuserid' AND pref_name LIKE 'show_location';
--
Vilius
More information about the horde
mailing list