Drupal 7 current user Og group id

global $user;
$gid = array_shift(og_get_entity_groups('user', $user));

Comments

Popular Posts