Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After the theme settings have been added, we need support for .install files for themes. The current workaround for D5 (http://drupal.org/node/177868) is very slow and an theme setting variables exists check will be executed once per page. It does not allow versioning of settings and so on.
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedEverything required to do install files are fairly complex; I'm not sure we can justify this in 6.x, as it will be a significant effort. Yes, a lot of the code is there for modules and can theoretically be re-used, but currently there is very little concept of enabling or disabling a theme. This may have to wait for Drupal 7.
Instead, I would recommend packaging a module to go with your theme.
Comment #2
hass CreditAttribution: hass commentedComment #4
hass CreditAttribution: hass commentedI'd like to remind us about this issue.
Comment #5
hass CreditAttribution: hass commentedComment #6
hass CreditAttribution: hass commented@merlinofchaos: Do you have an idea how much work this would be? Upgrading theme settings in D6 is a real mess... it could be much easier and reliable.
Comment #7
sun.core CreditAttribution: sun.core commentedComment #8
jhedstromFeature -> 8.1.
Comment #9
joelpittetComment #10
dawehnerSounds like a duplicate of #2652542: Add .install file abilities for Themes
Comment #11
joelpittetIt's not an exact duplicate but it's been active for 8 years+ so I'll close it and let someone who wants to work on this open a new issue if #2652542: Add .install file abilities for Themes doesn't resolve the crux of the issue. Thanks @dawehner I was looking for that one actually:)
Comment #12
joelpittetOther issue doesn't cover update hooks, re-opening.
Comment #13
catch#474684: Allow themes to declare dependencies on modules would allow update hooks though, so moving to duplicate of that issue.
Comment #14
dawehner#474684: Allow themes to declare dependencies on modules