Hi there,

I have a drupal installation with 5 different themes, which are active
dependent on the node which was selected. It is not my installation,
but I have to look after it.
My problem: I had to create a new module, and I wonder how I can
tell this module, which theme is currently active, so that the module
can print its outputs within the particular theme.

Do I have to manipulate the hook_theme or so?

Please help!

Thank you alot.

Soezkan

Comments

Anonymous’s picture

you can find this and lots more in the global $conf


global $conf;
if ($conf['theme_default'] == 'theme 1') {
  // do something
}