Community & Support

Howto detect what theme an user is having

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?

Comments

Seemingly relevant link

I found a seemingly relevant discussion here

// Samuel

Samuel Lampa
RIL Partner AB

Hello Samuel Thanks for your

Hello Samuel

Thanks for your help. I will dig
into this.

nobody click here