Thanks for a useful module. In my usage scenario, I need to switch themes based on HTTP_REFERER, so I added a property in my module to do that, using hook_themekey_properties() and hook_themekey_global().
However, I really want to switch based on the base path of the referer, and ThemeKey offers no operator to do that. So I added the '~' operator to match the given value against a user-specified regular expression.
Thanks for considering this.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 442188.patch | 4.53 KB | mkalkbrenner |
| themekey-kratib-regex.patch | 2.57 KB | infojunkie |
Comments
Comment #1
mkalkbrennerComment #2
mkalkbrennerWhile reviewing this patch I discovered a bug that affects this new feature: #615720: Condition operators don't work on properties based on array values
Here's a patch that fixes the bug and implements the requested regex feature.