Cant enable multiple themes
ferdi - July 10, 2009 - 14:01
| Project: | Install Profile API |
| Version: | 6.x-2.x-dev |
| Component: | CRUD functions and includes |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
install_enable_theme() calls system_theme_data() which rewrites the theme records in the system table; if you want to enable multiple themes, only the last one gets enabled.
| Attachment | Size |
|---|---|
| enable_multiple_themes.patch | 1.07 KB |

#1
This patch didn't work for me because I was calling
install_default_theme()afterinstall_enable_theme(). I have re-rolled the patch to make this behaviour work as expected.There is one caveat to this, I had to remove the
install_default_theme()call ininstall_default_theme(). Which alters the API behaviour.Can people let me know if this breakage is acceptable? Hopefully it is okay, because I think this feature is very helpful.
#2