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
Steve - long story short - this is a legacy site that was ported from Drupal 7 and had some tinkering done to it so that Brilliant Gallery code was interpreted. This avoided rewriting a few...
Question re paragraphs
Hi yorkshirepudding - once again you leap to my rescue! I thought I had it sussed after reading your reply but I found that creating a new field called Description, hiding the label and...
Question re paragraphs
Hi Ian..., Can you explain why you are using Paragraphs for this? Is it because you have a specific requirement that is only filled by Paragraphs? There are other ways to create an...
Question re paragraphs