You are here

function _privatemsg_groups_get_group_recipient_type in Privatemsg 7.2

Given a group entity type, return the recipient type name.

4 calls to _privatemsg_groups_get_group_recipient_type()
PrivatemsgGroupsTestCase::testSendMessageToGroup in privatemsg_groups/privatemsg_groups.test
Test sending message to group using GUI.
PrivatemsgGroupsTestCase::testSendMessagetoGroupAPI in privatemsg_groups/privatemsg_groups.test
Test sending message to a group using privatemsg_new_thread API method.
PrivatemsgGroupsTestCase::testSendMessagetoGroupCron in privatemsg_groups/privatemsg_groups.test
Test batch sending using API and cron.
privatemsg_groups_privatemsg_name_lookup in privatemsg_groups/privatemsg_groups.module
Implements hook_privatemsg_name_lookup().

File

privatemsg_groups/privatemsg_groups.module, line 235
Allows to send messages to all members of an organic group

Code

function _privatemsg_groups_get_group_recipient_type($group_type) {
  return 'og:' . $group_type;
}