Howto detect what theme an user is having

ronia - May 28, 2009 - 02:28

Dear Drupal freinds,

How can I detect what theme an user is having and direct the code according to that

For example in the following

drupal_add_css($path .'/bueditor.css');
drupal_add_js($path .'/bueditor.js');

I will like to have garland users see BUE editor
and non garland users not see BUE editor

How can the $path be modified according to the user theme?

Seemingly relevant link

saml - May 29, 2009 - 10:39

I found a seemingly relevant discussion here

// Samuel

Samuel Lampa - (Drupal Theme design at http://rilnet.com)

Hello Samuel Thanks for your

ronia - May 29, 2009 - 10:48

Hello Samuel

Thanks for your help. I will dig
into this.

 
 

Drupal is a registered trademark of Dries Buytaert.