Setting the theme for a custom module

Brandon Sussman

Joined: 2005-10-24
Posts: 82
Posted: Sat, 2008-04-12 02:20

I have a custom module that I inherited that is not displaying in the correct theme (as seen in the smarty console).

The module is an upload function. I display an album with an explicitly set theme. When I go to the module, the theme is then the default theme.

How does G2 know what theme to use when calling a view that is part of a module? I believe it is using some defaulting mechanism to set the theme?

What data must be present so that this module behaves itself?