This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get all users of a group who contributed. | |
*/ | |
function _events_resource_get_users_in_group($gid) { | |
$query = db_select('og_membership', 'ogm'); | |
$query->join('node', 'n', "n.nid = ogm.etid AND ogm.entity_type = 'node'"); | |
$query->join('user', 'u', 'n.uid = u.uid'); | |
$query->fields('n', array('uid')) |