[RCD] Hook question(s): render_mailboxlist

A.L.E.C alec at alec.pl
Wed Feb 29 08:43:40 CET 2012


On 29.02.2012 00:13, Andy Theuninck wrote:
> 1. Is there anything I can set/alter in the return value to change
> which <option> gets the "selected" attribute?

Possible with r5926. Without this you can do this client-side.

> 2. This seems really basic, but what all do I look at to figure out
> within the hook function to determine where it's being called?
> Checking rcmail::get_instance->task and rcmail::get_instance()->show
> narrows it down some, but those values aren't sufficient to
> distinguish between the left sidebar folder list (which I don't want
> to alter) and the "Move to..." select box (which I do want to alter).
> 
> What I'm trying to do is check current message attributes (from,
> subject) and change the selection in the "Move to..." drop down
> accordingly.

If you change the selection you'll need to add "Move to" button.

-- 
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80



More information about the Dev mailing list