function privatemsg_recipient_get_type

7-1 privatemsg.module privatemsg_recipient_get_type($type)
7-2 privatemsg.module privatemsg_recipient_get_type($type)
6-2 privatemsg.module privatemsg_recipient_get_type($type)

Return a single recipient type information.

Parameters

$type: Name of the recipient type.

Return value

Array with the recipient type definition. NULL if the type doesn't exist.

Related topics

8 calls to privatemsg_recipient_get_type()
privatemsg_cron in ./privatemsg.module
Implements hook_cron().
privatemsg_groups_privatemsg_name_lookup in privatemsg_groups/privatemsg_groups.module
Implements hook_privatemsg_name_lookup().
privatemsg_load_recipients in ./privatemsg.pages.inc
Batch processing function for rebuilding the index.
privatemsg_recipient_access in ./privatemsg.module
This function is used to test if the current user has write/view access for a specific recipient type.
privatemsg_recipient_format in ./privatemsg.module
Format a single participant.

... See full list

File

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

Code

function privatemsg_recipient_get_type($type) {
  $types = privatemsg_recipient_get_types();
  if (!is_string($type)) {
    exit;
  }
  if (isset($types[$type])) {
    return $types[$type];
  }
}