function privatemsg_privatemsg_recipient_type_info

7-1 privatemsg.module privatemsg_privatemsg_recipient_type_info()
7-2 privatemsg.module privatemsg_privatemsg_recipient_type_info()
6-2 privatemsg.module privatemsg_privatemsg_recipient_type_info()

Implements hook_privatemsg_recipient_type_info().

File

./privatemsg.module, line 2745
Allows users to send private messages to other users.

Code

function privatemsg_privatemsg_recipient_type_info() {
  return array('user' => array(
      'name' => t('User'),
      'description' => t('Enter a user name to write a message to a user.'),
      'load' => 'privatemsg_user_load_multiple',
      'format' => 'privatemsg_username',
      'autocomplete' => 'privatemsg_user_autocomplete',
      // Make sure this comes always last.
      '#weight' => 50,
    ));
}