function privatemsg_recipient_get_type in Privatemsg 6.2
Same name and namespace in other branches
- 7.2 privatemsg.module \privatemsg_recipient_get_type()
- 7 privatemsg.module \privatemsg_recipient_get_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
7 calls to privatemsg_recipient_get_type()
- privatemsg_cron in ./
privatemsg.module - Implements hook_cron().
- 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.
- _privatemsg_generate_user_array in ./
privatemsg.module - Generate aray of user objects based on a string.
File
- ./
privatemsg.module, line 2621 - 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];
}
}