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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggles’s picture

Project: Drush » Devel
Version: » 6.x-1.x-dev
Component: Code » devel
Status: Active » Needs review
FileSize
1.48 KB

This should have been in devel, not drush.

greggles’s picture

One more try - the url needs to be wrapped in url() in order to actually work.

JohnAlbin’s picture

I 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

greggles’s picture

Makes 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.

drewish’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Needs work
FileSize
1.51 KB

need 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?

moshe weitzman’s picture

Status: Needs work » Fixed

committed. thx.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.