Hello,

How do I fetch the current Organic Groups ID in the block?
I have a shot at using print $group->nid; ,but it's not work,what good means do you have?

Thanks.

Comments

dhayalan_ms’s picture

 $group_node = og_get_group_context(); 
print $group_node->nid;

Associate Architect
Indecomm Global Services