function privatemsg_recipient_get_types

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

Returns an array of defined recipient types.

Return value

Array of recipient types

See also


Related topics

4 calls to privatemsg_recipient_get_types()
privatemsg_autocomplete in ./
Return autocomplete results for usernames.
privatemsg_cron in ./privatemsg.module
Implements hook_cron().
privatemsg_new in ./
Form builder function; Write a new private message.
privatemsg_recipient_get_type in ./privatemsg.module
Return a single recipient type information.
1 string reference to 'privatemsg_recipient_get_types'


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


function privatemsg_recipient_get_types() {
  $types = &drupal_static(__FUNCTION__, NULL);

  if ($types === NULL) {
    $types = module_invoke_all('privatemsg_recipient_type_info');
    if (!is_array($types)) {
      $types = array();
    drupal_alter('privatemsg_recipient_type_info', $types);
    uasort($types, 'element_sort');
  return $types;