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 I added the 2 additional settings in settings.php, did a restart - and the error disappeared! Thanks for the support! (but the issues with the conversion still remain .....
Problem with utf8mb4 Format when importing database
With JQuery, simple and fast. Or put all possible links in one menu, and hide unnecessary with CSS mediaquery.
Different primary menus depending on the viewport size?
I wonder if what is happening here is the default database settings are for utf8mb4 if the database server supports it. In settings.php or settings.local.php if that's where you put your...
Problem with utf8mb4 Format when importing database