[support] Trying to change theme, based on language

Idan Arbel idan at arbel-designs.com
Tue Feb 5 12:52:43 UTC 2008


Hello,

 

I'm trying to write a module that'll change the theme based on the language
of the site,

 

But I  seem to run into a problem when trying to change theme.

 

I'm running this code:

 

function language_theme_init($may_cache) {

if(!$may_cache) {

global $custom_theme, $locale, $theme;

                        $theme = null;

                        $name = "garland";

                        $cusotm_theme = $name;

 

}

}

 

The theme doesn't change.

 

Anyone know what I'm doing wrong?

 

Idan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080205/d0af75ee/attachment.htm 


More information about the support mailing list