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
Hi Jim..., I did something similar for a new site ive created parallax-news.com where the poster can add an image and a blue background with text shadows to make text more readable...
How to access node fields in block template files
Thanks people. I went ahead and created a View block using the BG image formatter. I might still end up messing with template files because I’ll probably need to overlay a graduated...
How to access node fields in block template files
Hi Coffee70, How can I determine what is causing this warning and what exactly needs to be done to resolve it, other than uninstalling Honeypot completely? It doesn't...
Warnings after installing Simplenews 1.x-1.2.3