I needed an option to disable certain themes in the select list.
Since #735638: Option to select which of the enabled themes will be available for switching only applies to D6 i made this little patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 1159884.8-switchtheme-disable-option.patch | 1.22 KB | mrfelton |
| #5 | switchtheme-disable_themes-1159884.patch | 836 bytes | Robin Millette |
| add-disable-option.patch | 2.75 KB | donniewiko |
Comments
Comment #1
wernercd commentedJust what I was looking for... I'll try this tonight.
Comment #2
Anonymous (not verified) commentedWorks perfect.
Only in the page layout I would preferre a table view of all the themes (theme per row), to have all settings in one pageview, withouth the closed fieldsets per theme. But like I said: it works great.
Comment #3
raydenxxx commentedWorks great!
Be aware about this correction
You replace the $name var by $label which will do name changing dosn't work.
So you should write this
Comment #4
Robin Millette commentedThat's a big patch!
Instead of another set of variables, in this patch, blanked labels disable themes.
Comment #5
Robin Millette commentedComment #6
mr_wookie commented@#5: Works greate for me. Thanks!
Comment #7
rolfmeijer commentedWorks like a charm.
Maybe the help text needs an update?
Something like:
It’s just a suggestion, maybe it’s clear as it is, I’m just saying a new (dev-)version would be great. :-)
Comment #8
mrfelton commentedPatch updated to apply cleanly against latest dev code
Comment #9
m-patate commentedHello,
Thanks for this usefull enhancement !
Do you know when it will be available in a new release module version ?
Thanks
Comment #10
Anonymous (not verified) commented#8 works for me!
Marked #1948174: I need a way to remove a theme from the pool. as a duplicate.