We currently have only list_themes()
which not only is poorly named (backdrop_list_themes
maybe?) but also retrieves theme data for all themes. Most of the time, we only need the data for a single theme, resulting in yuck in our code that looks like this....
global $theme;
$theme_data = list_themes();
$theme_object = $theme_data[$theme];
It would be good if we could add backdrop_get_theme_info($themename)
that would return the contents of that single info file.
As an added bonus, it could load any files located in the contrib
directory of that theme, or in the active directory of the site.
Recent comments
Thank you so much for your help. I'll be in touch soon through the Zulip channel. I'll try your suggestion as soon as I can. Of course, I'll share the results with the community; perhaps it will...
Error TypeError: Unsupported operand types: null + array...
So what is the goal The primary goal is clarity: what happens / has to happen if... ;-) Currently, for example, I couldn't even deprecate my own projects, they will...
June 26th 2025 Weekly Meetings
This may be somewhat difficult to address for various reasons. Some projects may look abandoned to someone new looking at it and yet may show a number of installs. The number of installs...
June 26th 2025 Weekly Meetings