[development] Switching themes in modules

Olav Schettler olav.schettler at contaire.de
Fri Jun 23 00:03:28 UTC 2006


Bèr,

On Thu, 22 Jun 2006 21:38:01 +0200, Bèr Kessels wrote:
> I read that. Still I see no difference. Sections is very small. The amount of 
> code in both modules is not much different.
I agree with you. Background for me writing my manage.module was that 
really sections.module didn't do anything for me and I had to deliver a 
separate management theme to a client.

After reading your above post,  I debugged my problem and found that 
setting $custom_theme in hook_menu() is too late in my setting. Probably 
(I haven't analyzed this further), some other module initializes the 
theme system before.

To me this seems like a general problem. I have therefore created a 
patch to sections.module at http://drupal.org/node/47788 which sets 
$custom_theme in a new hook_init(). Now your sections.module works for 
me nicely and I will use it.

Olav

-- 
Dr. Olav Schettler
(Geschäftsführer)
contAire GmbH
___________________________________________
Arndtstr. 12 | D-50676 Köln | Germany
Office: +49 221 4204757 | Mobile: +49 175 2249141
olav.s at contaire.de | Yahoo! olav
___________________________________________
Please visit our website http://www.contaire.de/



More information about the development mailing list