Question is here
@SomebodySysop,
Maybe you can use some PHP in the block settings with some code. Something like this:
<?PHP
$top = array();
$top = og_subgroups_get_all_family($gid, 'up'); // Here you can decide if it is up, down or side.
if ($top) {
return TRUE;
}
Let us know if it works for you.
Comments
Comment #1
somebodysysop commentedThanks. Modified slightly:
Works exactly as desired. Block only appears if the group is part of a subgroup tree. Thank you for the quick response.
Comment #2
amitaibu10x, documented - http://drupal.org/node/267280
Comment #3
amitaibu@SomebodySysop
Please note I changed the docs to use a better function
og_subgroups_get_familyinstead ofog_subgroups_get_all_familyComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.