You are here

function privatemsg_build_modes in Privatemsg 7.2

Same name and namespace in other branches
  1. 7 privatemsg.module \privatemsg_build_modes()

Implements hook_build_modes().

File

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

Code

function privatemsg_build_modes($obj_type) {
  $modes = array();
  if ($obj_type == 'privatemsg_message') {
    $modes['message'] = t('Message');
  }
  return $modes;
}