The module currently determines the theme key inside form_alter() by striping theme_ and _settings from the $key in the form.
Unfortunately, themes named FOOtheme or FOO_theme have a form $key of "theme_FOOtheme_settings" or "theme_FOO_theme_settings". And striping off theme_ and then _settings results in a theme name of "FOOsettings" or FOO_settings" and will cause the inclusion of the theme-settings.php to fail.
Since modules and themes share a namespace, many custom modules and themes for a site are named SITE (module) and SITEtheme (theme). So this is actually a common occurrence.
I could strip _settings and then strip theme_, but we would have problems with themes named settingsFOO. So I’ll use a regexp /(^theme_|_settings$)/.
Comments
Comment #1
johnalbinFixed.
Comment #2
johnalbinComment #3
johnalbinFixed.
Comment #4
johnalbinComment #5
johnalbinFixed.
Comment #6
johnalbinPorting…
Comment #7
johnalbinFixed.
Comment #8
(not verified) commented