function privatemsg_build_modes

7-1 privatemsg.module privatemsg_build_modes($obj_type)
7-2 privatemsg.module privatemsg_build_modes($obj_type)

Implements hook_build_modes().

File

./privatemsg.module, line 2412
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;
}