I am developing a module in which I want to make a list of enabled themes. Also I don't want to show administration themes in the list. So How do I make a list of enabled front-end themes?
Thanks in advance.

Comments

paean99’s picture

You can find it in the database
Table: System
Column 'type' = theme
Column 'status' = 1

The admin theme is in a Blob in the table 'variable' with 'name' = admin_theme

Jaypan’s picture

paean99’s picture

Nice.
The status return value will give him the enabled themes.

But, if i am not mistaken, he will need to subtract/unset variable_get('admin_theme') from the result since the admin theme might be enabled. That is, if the admin theme is not the default one.

Shashwat Purav’s picture

Thank you paean99 and Jaypan for the solution, this worked like charm. :)

Thank You,
Shashwat Purav