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.
The zen subtheme provides this and it seems nice to do in Devel for situations where you aren't using the Zen theme.
Full feature:
1. Checkbox on the settings page to enable theme rebuild on every page
2. When enabled, do a drupal_set_message warning users with "view devel messages" permission that it is on and give a link to where they can disable it
Comment | File | Size | Author |
---|---|---|---|
#5 | devel_364532.patch | 1.51 KB | drewish |
#4 | 364532_theme_rebuild_3.patch | 1.69 KB | greggles |
#2 | 364532_theme_rebuild_2.patch | 1.52 KB | greggles |
#1 | 364532_theme_rebuild.patch | 1.48 KB | greggles |
Comments
Comment #1
gregglesThis should have been in devel, not drush.
Comment #2
gregglesOne more try - the url needs to be wrapped in url() in order to actually work.
Comment #3
JohnAlbinI suggested this exact patch in #drupal-themes the other day. I would consider removing this feature from Zen if it was in devel.
Also, you may want to look at #322480: Make registry rebuild warning less obtrusive. Some people think the "warning on every page" thing is annoying.
Hmm… there's also some overlap with this issue: #364791: Add "Enable/disable caching" menu item
Comment #4
gregglesMakes sense. I've never used flood control before so I'm somewhat hesitant about whether this patch is right or not, but if the patch for zen was right then this should be good.
Comment #5
drewish CreditAttribution: drewish commentedneed to get it into HEAD first... here's a stab at a D7 update... oddly though I only saw the message once.
The option's description: "While creating new templates and theme_ overrides the theme registry needs to be rebuilt." could use some work. Perhaps something about how checking this does that? How often? Every page load right?
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedcommitted. thx.