[horde] Enumerations in prefs.php

Otto Stolz Otto.Stolz at uni-konstanz.de
Thu May 18 04:46:37 PDT 2006


Hello,

while preparing the transition from Imp 3.2.2 to Imp H3 4.1.1,
I hit on this question (probably a general Horde question, thus
I am posting in this list):

- Can I remove an option from an enumeration in a prefs.php file,
   or will this break some function in a distant, unexpected place?

The particular example I'm cocerned about is in imp/config/prefs.php:
> // Time format for messages dated today
> $_prefs['time_format'] = array(
>     'value' => '%H:%M:%S',
>     'locked' => false,
>     'shared' => false,
>     'type' => 'enum',
>     'enum' => array(
> //      '%X' => strftime('%X'),
>         '%H:%M:%S' => strftime('%H:%M:%S'),
>         '%I:%M:%S %p' => strftime('%I:%M:%S %p'),
>         '%H:%M' => strftime('%H:%M'),
>         '%I:%M%p' => strftime('%I:%M%p'),
>     ),
>     'desc' => _("Format of message dates in the mailbox view for messages dated today"));

I do not wish to offer the %X format to my users, as it
depends on the locale on a server machine, where no user is
allowed to login, anyway. So I am planning to make a comment
from the respective line, as shown above. Is this alright, or
should I take any precautions?

Thanks, and best wishes,
    Otto Stolz



More information about the horde mailing list