it appears that the organic groups functionality hasn't worked/been available for some time now. It looks like the problem lies in the fact that either the modules/themekey.og_context.inc is named incorrectly, or the hooks inside the file are named incorrectly eg "themekey_og_themekey_properties".

As well, the code that includes these files makes incorrect assumptions about what a filename should be. specifically it uses a regular expression that only accounts for letters (eg: [a-z]+ ) when there are also modules that have underscores as well so the pattern really needs to at a minimum be [a-z_]*.

Attached is a patch for these problems and that should get theme key tokens for organic groups to become available for users again.

Hope this helps!

CommentFileSizeAuthor
og_includes_fail.patch1.79 KBnetw3rker
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cdulude’s picture

Works for me!

mkalkbrenner’s picture

Title: organic groups keys are not available » organic groups properties are not available
Assigned: netw3rker » mkalkbrenner
Status: Needs review » Patch (to be ported)

You're right. In detail I adjusted some more code and added an update function. Already committed to git ...

The file scanning needs to be adjusted in 6.x as well ...

mkalkbrenner’s picture

Version: 7.x-2.x-dev » 6.x-4.x-dev
mkalkbrenner’s picture

Status: Patch (to be ported) » Fixed

fixed in 6.x

netw3rker’s picture

Its also worth mentioning for anyone seeking this OG functionality in themekey. This is specifically designed to require the "OG Context" module. There isn't any documentation that states this, so hopefully people searching for how to set this up in OG will stumble across this.

Status: Fixed » Closed (fixed)

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