You are here

function privatemsg_roles_privatemsg_recipient_type_info in Privatemsg 7

Same name and namespace in other branches
  1. 6.2 privatemsg_roles/privatemsg_roles.module \privatemsg_roles_privatemsg_recipient_type_info()
  2. 7.2 privatemsg_roles/privatemsg_roles.module \privatemsg_roles_privatemsg_recipient_type_info()

Implements hook_privatemsg_recipient_type_info().

File

privatemsg_roles/privatemsg_roles.module, line 35
Allows to send messages to all members of a role.

Code

function privatemsg_roles_privatemsg_recipient_type_info() {
  return array(
    'role' => array(
      'name' => t('Role'),
      'description' => t('Enter the name of a role to write a message to all users which have that role. Example: authenticated user.'),
      'load' => 'privatemsg_roles_load_multiple',
      'format' => 'privatemsg_roles_format',
      'autocomplete' => 'privatemsg_roles_autocomplete',
      'generate recipients' => 'privatemsg_roles_load_recipients',
      'count' => 'privatemsg_roles_count_recipients',
      'write access' => 'write privatemsg to roles',
      'view access' => 'view roles recipients',
    ),
  );
}