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.

AttachmentSize
enable_multiple_themes.patch1.07 KB

#1

James Andres - July 16, 2009 - 20:22

This patch didn't work for me because I was calling install_default_theme() after install_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 in install_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.

AttachmentSize
enable_multiple_themes.v2.patch 1.17 KB

#2

James Andres - July 20, 2009 - 20:45
Status:active» needs review
 
 

Drupal is a registered trademark of Dries Buytaert.