function ginvite_get_invites in Group 7
Get group invitations for a given e-mail address.
Parameters
string $mail: The e-mail address to retrieve invites for.
Return value
array An array of database records keyed by the group id.
2 calls to ginvite_get_invites()
- ginvite_by_mail_form_validate in modules/
ginvite/ forms/ ginvite.inc - Validate handler for ginvite_by_mail_form().
- ginvite_user_insert in modules/
ginvite/ ginvite.module - Implements hook_user_insert().
File
- modules/
ginvite/ ginvite.module, line 126 - Contains invite functionality for the Group module.
Code
function ginvite_get_invites($mail) {
return db_select('group_invite', 'gi')
->fields('gi')
->condition('mail', $mail)
->execute()
->fetchAllAssoc('gid');
}