I just added your patch to the current development version (available in CVS). Thanks a lot for your work! The function to display the CC field was added to the skin template because is actually has nothing to do with the core functionality. It's the skin that hides this field, it's the skin that has to display it if there's some content in it.
Regards, Thomas
Julien Brette wrote:
The main problem was to have the "compose-cc" area be visible when there is something in it. I solved this using a global variable (in $GLOBALS), but there might be a better solution
Mhm. Shouldn't this be handled on the client side inside the JavaScript that hides the CC area?
Is it better like this? I add rcmail.gui_object for the cc area and rcmail.set_env for the display style (‘table-row’ or ‘none’) with $OUTPUT->add_scipt. In app.js, in init, I set the display style of the cc area