You are here

function ginvite_get_group_invites in Group 7

Get group invitations for a given group.

Parameters

Group $group: The group to retrieve invites for.

Return value

array An array of database records keyed by the invite id.

1 call to ginvite_get_group_invites()
ginvite_by_mail_list in modules/ginvite/admin/ginvite.inc
Generate the e-mail invitation list.

File

modules/ginvite/ginvite.module, line 143
Contains invite functionality for the Group module.

Code

function ginvite_get_group_invites(Group $group) {
  return db_select('group_invite', 'gi')
    ->fields('gi')
    ->condition('gid', $group->gid)
    ->execute()
    ->fetchAllAssoc('iid');
}