variable og_node_types is incompatible with latest OG
Bob Morse - June 17, 2008 - 20:18
| Project: | OG Block Visibility |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | paulbooker |
| Status: | closed |
Description
When I try to configure a block and click the Group visibility settings I get the message "No group types have been defined. Please define at least one group node type under administer >> settings >> og". That link doesn't work. But I have group node types defined already.

#1
I had the same problem, apparently the latest version of og no longer uses the variable this module is searching for, i. e. "og_node_types".
So this module needs some serious updating to match the current version of og.
#2
#3
Getting the same problem. Thanks for your help, Paul!
#4
The latest OG uses
og_get_types('group')to get a list of node types that are groups. This patch checks for the existence of this function before using it, and if it doesn't find it, it uses the oldvariable_get('og_node_types', array('og'))method. So the og_block_visibility.module will remain compatible with older versions of OG as well.This patch plus the one in #298532: .info file broken and DRUPAL-5 contains module_exist(), a 4.7 function were required to get this module working with the latest OG.
#5
Thanks for this patch
temp
Automatically closed -- issue fixed for two weeks with no activity.
#6
Automatically closed -- issue fixed for two weeks with no activity.