How do I set group context in Drupal 7?
I found this in og_context api:
**> 7 og_context.module og_context($group_type = 'node', $group = NULL)
Get or set group context using the menu system.
Parameters
$group_type: The context to get by group type. Defaults to "node".
$group: Optional; The group entity to set as the context.
Return value
Array keyed by the group type and group ID, or FALSE if no context was found.**
But I have not found any examples of how to enter "The group entity". I just know the group node ID I want to use (For example, "40").
Can anyone help me with this? Thanks!
I found the solution here: https://drupal.org/comment/8179187#comment-8179187
Assuming arg(1) is the group node id: