From b6be7cfd6e609ab0561f5bd026d3ca181fbdcd03 Mon Sep 17 00:00:00 2001
From: Sascha Grossenbacher <saschagros@gmail.com>
Date: Sun, 20 Mar 2011 17:42:21 +0100
Subject: [PATCH] Issue #1075994 by Berdir: Use correct function to determine if a node type is a organic group content.

---
 .../user_relationship_node_access.module           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/user_relationship_node_access/user_relationship_node_access.module b/user_relationship_node_access/user_relationship_node_access.module
index cb75bc3..bb27f8b 100644
--- a/user_relationship_node_access/user_relationship_node_access.module
+++ b/user_relationship_node_access/user_relationship_node_access.module
@@ -129,7 +129,7 @@ function user_relationship_node_access_form_node_form_alter(&$form, &$form_state
   // use advanced form with a table if more than one permission, otherwise just a simple 'post to related users' checkbox
   $use_advanced_form = count($author_allowed_perms) > 1;
   // different labels for group posts (that have the group audience fieldset)
-  $is_group_post = module_exists('og') && og_is_group_post_type($form['type']['#value']);
+  $is_group_post = module_exists('og') && og_is_group_content_type('node', $form['#node']->type);
 
   $form['user_relationship_node_access'] = array(
     '#type'         => 'fieldset',
-- 
1.7.4.1

