Hello,

I believe line 250 of themekey_ui.module in 7.x-2.0,

if (module_exists('og') && !og_is_omitted_type($type)) {

needs to be updated. The function og_is_omitted_type(), which was defined in Organic Groups 6.x, seems not to be defined in Organic Groups 7.x. I noticed that the Spaces module tackled a nearly identical problem, and I think changing the aforementioned line to

if (module_exists('og') && variable_get('og_group_type_' . $type, 'omitted') != 'omitted') {

will solve the issue.

Thanks for ThemeKey!

CommentFileSizeAuthor
#1 1589354.patch1.86 KBmkalkbrenner

Comments

mkalkbrenner’s picture

Status: Active » Needs review
StatusFileSize
new1.86 KB

Good catch.

I changed that using your suggestion and also modified the description shown to the user. Using ThemeKey Compatibility you're able to fine tune the behaviour now.

yahhr857’s picture

Perfect!
Thank you for the patch. This worked nicely and solved the error message right away!

mkalkbrenner’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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