Blog Archive

Tuesday, 4 February 2014

Drupal 7 current user Og group id

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

No comments:

Post a Comment