When using theme = theme_name in your profiles .info file causes the named theme to be set as the default but it is not enabled. This means that while the theme will display on the site you can not actually navigate to any settings pages for the theme until you enable it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eojthebrave’s picture

Status: Active » Needs review
FileSize
691 bytes
eojthebrave’s picture

This is a problem in the 6.x branch as well. Something gets called after profiler_install_theme() that causes the status of the theme to be reset to 0 despite the fact that profiler sets it to 1. Still haven't been able to track down what is causing this though.

eojthebrave’s picture

So here's what I think is going on in D6.

The second call to drupal_flush_all_caches() inside of profiler_install_components() which causes system_theme_data() to get a called and in this context it disables all themes.

So, we can either remove the second call to drupal_flush_all_caches() set MAINTENANCE_MODE = 'update' for drupal_flush_all_caches() or make our own version of drupal_flush_call_caches which uses _system_theme_data() instead of system_theme_data().

Thoughts?

mxmilkiib’s picture

subscribaa

q0rban’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Needs review » Patch (to be ported)
q0rban’s picture

jhedstrom’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Status: Patch (to be ported) » Needs review

I don't see this on the latest 7.x branch, but oddly, it's in the latest release tarball.

http://drupalcode.org/project/profiler.git/blob/refs/heads/7.x-2.x:/prof...