OG

Drupal Logo

Load Drupal Organic Group Role By Name

23rd January 2013 - 2 minutes read time

I have been developing a site with the Drupal 7 Organic Groups (OG) module today and I found the need to grab a bunch of users from a group depending on their group role. The first parameter here is the group GID (not the node ID) and the second is an array of role ID's to use.