[horde] imp display mode variable?

Jan Schneider jan at horde.org
Fri Dec 6 10:05:21 UTC 2013


Zitat von Rick Romero <rick at havokmon.com>:

> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von Rick Romero <rick at havokmon.com>:
>>
>>> Hey guys - I feel a bit ashamed for asking this, but I'm having a  
>>> problem finding what I'm looking for...
>>>
>>> I have a custom login form for multiple webmail systems, and I  
>>> store a cookie in the postauthenticate hook that 'remembers' the  
>>> last webmail option chosen.  Some of my users aren't so keen on  
>>> the new dynamic Horde, but I want it to be default, so I added the  
>>> select dropdown to my login menu.
>>>
>>> What variable stores that choice, and would be available to the  
>>> postauthenticate hook?  I thought maybe something in the $browser  
>>> object, but I'm not sure how to extrapolate the data it contains..
>>>
>>> Help :)
>>>
>>> Thanks,
>>> Rick
>>
>> Are you talking about where it's stored inbetween sessions? That's  
>> the default_horde_view cookie.
>
> Oh.  Duh. I didn't think that preference was being saved, so I was  
> really looking for the variable name used during the session, but I  
> can just read the cookie in postauth hook and write the contents to  
> a new cookie in the domain root.
>
> Thanks!
> Rick

It is, in $registry->getView().
-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the horde mailing list