Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Shashwat Purav on
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
You can find it in the
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
list_themes()
list_themes()
Nice.
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.
Thank you paean99 for the
Thank you paean99 and Jaypan for the solution, this worked like charm. :)
Thank You,
Shashwat Purav