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.

Comments

mkalkbrenner’s picture

Assigned: Unassigned » mkalkbrenner
mkalkbrenner’s picture

Version: 6.x-1.1 » 6.x-1.2-beta1
Status: Needs review » Fixed
StatusFileSize
new4.53 KB

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

Status: Fixed » Closed (fixed)

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