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
The Mail System and MimeMail modules are now installed. I'll let you know if they solve the problem. Edit: Using Mail System with MimeMail I was able to send plain text emails. There is...
HTML Email treated as plain text
If you haven't already I recommend installing Mail System and MimeMail. The latter will help format emails as HTML and first helps with configuring which module will handle the formatting...
HTML Email treated as plain text
The horrors of cut/paste! Brilliant, thanks.
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: